Add support for protocol 41 in rules. Fixes #3007.