From: Jan Engelhardt Date: Wed, 8 Oct 2008 09:35:01 +0000 (+0200) Subject: netfilter: implement NFPROTO_UNSPEC as a wildcard for extensions X-Git-Tag: v2.6.28-rc1~717^2~109^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b69e91040c685a064198bd76e59885b7ad26c6;p=pandora-kernel.git netfilter: implement NFPROTO_UNSPEC as a wildcard for extensions When a match or target is looked up using xt_find_{match,target}, Xtables will also search the NFPROTO_UNSPEC module list. This allows for protocol-independent extensions (like xt_time) to be reused from other components (e.g. arptables, ebtables). Extensions that take different codepaths depending on match->family or target->family of course cannot use NFPROTO_UNSPEC within the registration structure (e.g. xt_pkttype). Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed