]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_CT: fix assignation of the generic protocol tracker
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Mar 2012 23:02:07 +0000 (00:02 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Mar 2012 23:52:08 +0000 (00:52 +0100)
commite9c722446addbb9135e60ccf7a65301169a156ef
tree6f22434bb52107e257493393c5da695453b893e2
parent629a47330ecfcae8b8440ab43b7587d18c510f12
netfilter: xt_CT: fix assignation of the generic protocol tracker

`iptables -p all' uses 0 to match all protocols, while the conntrack
subsystem uses 255. We still need `-p all' to attach the custom
timeout policies for the generic protocol tracker.

Moreover, we may use `iptables -p sctp' while the SCTP tracker is
not loaded. In that case, we have to default on the generic protocol
tracker.

Another possibility is `iptables -p ip' that should be supported
as well. This patch makes sure we validate all possible scenarios.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_CT.c