]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc59e02a2f36523ddf13418096a6f5711da69d995
tree22cd94a58059a00711fad3570c92c820665a882b
parentff345308b883968960de2bc1c0fac9254dda68c1
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