On Fri, Oct 28, 2016 at 10:42:09AM +0200, Davide Caratti wrote: > modify registration and deregistration of layer-4 protocol trackers to > facilitate inclusion of new elements into the current list of builtin > protocols. Both builtin (TCP, UDP, ICMP) and non-builtin (DCCP, GRE, SCTP, > UDPlite) layer-4 protocol trackers usually register/deregister themselves > using consecutive calls to nf_ct_l4proto_{,pernet}_{,un}register(...). > This sequence is interrupted and rolled back in case of error; in order to > simplify addition of builtin protocols, the input of the above functions > has been modified to allow registering/unregistering multiple protocols. Applied, thanks Davide. [...] > include/net/netfilter/nf_conntrack_l4proto.h | 12 +- > net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 76 +++------- > net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 78 ++++------ > net/netfilter/nf_conntrack_proto.c | 191 +++++++++++++++---------- > net/netfilter/nf_conntrack_proto_dccp.c | 48 ++----- > net/netfilter/nf_conntrack_proto_gre.c | 28 ++-- > net/netfilter/nf_conntrack_proto_sctp.c | 50 ++----- > net/netfilter/nf_conntrack_proto_udplite.c | 50 ++----- > 8 files changed, 222 insertions(+), 311 deletions(-) Less boilerplate registration code, nice. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html