From 03d99486d8283552705b58dc55b6085dffc38792 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 18 Nov 2008 12:27:54 +0100 Subject: src: use NFPROTO_ constants Resync netfilter.h from the latest kernel and make use of the new NFPROTO_ constants that have been introduced. Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- include/linux/netfilter.h | 10 ++++++++++ include/xtables.h.in | 2 ++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 4196a511..dc7ac577 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -36,6 +36,16 @@ enum nf_inet_hooks { NF_INET_NUMHOOKS }; +enum { + NFPROTO_UNSPEC = 0, + NFPROTO_IPV4 = 2, + NFPROTO_ARP = 3, + NFPROTO_BRIDGE = 7, + NFPROTO_IPV6 = 10, + NFPROTO_DECNET = 12, + NFPROTO_NUMPROTO, +}; + union nf_inet_addr { __u32 all[4]; __be32 ip; diff --git a/include/xtables.h.in b/include/xtables.h.in index 51cb67dc..8327c426 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -4,8 +4,10 @@ #include /* PF_* */ #include #include +#include #include #include +#include #include #ifndef IPPROTO_SCTP -- cgit v1.2.3