diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-11-18 12:27:54 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-18 12:27:54 +0100 |
commit | 03d99486d8283552705b58dc55b6085dffc38792 (patch) | |
tree | 98a383ac7e646d596ba872a443dc96da4b60cb04 /include | |
parent | c354105d3578e3dd1ec825a57005fe60c095f7cb (diff) |
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 <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter.h | 10 | ||||
-rw-r--r-- | include/xtables.h.in | 2 |
2 files changed, 12 insertions, 0 deletions
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 <sys/socket.h> /* PF_* */ #include <sys/types.h> #include <stdbool.h> +#include <netinet/in.h> #include <net/if.h> #include <linux/types.h> +#include <linux/netfilter.h> #include <linux/netfilter/x_tables.h> #ifndef IPPROTO_SCTP |