netfilter: ctnetlink: only assign helpers for matching protocols
authorPatrick McHardy <kaber@trash.net>
Wed, 3 Feb 2010 12:41:29 +0000 (13:41 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 3 Feb 2010 12:41:29 +0000 (13:41 +0100)
commit794e68716bab578ae8f8912dc934496d7c7abc90
tree22cd94a58059a00711fad3570c92c820665a882b
parent2eff25c18c3d332d3c4dd98f2ac9b7114e9771b0
netfilter: ctnetlink: only assign helpers for matching protocols

Make sure not to assign a helper for a different network or transport
layer protocol to a connection.

Additionally change expectation deletion by helper to compare the name
directly - there might be multiple helper registrations using the same
name, currently one of them is chosen in an unpredictable manner and
only those expectations are removed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nf_conntrack_helper.h
net/netfilter/nf_conntrack_helper.c
net/netfilter/nf_conntrack_netlink.c