[NETFILTER]: Introduce NF_INET_ hook values
The IPv4 and IPv6 hook values are identical, yet some code tries to figure out the "correct" value by looking at the address family. Introduce NF_INET_* values for both IPv4 and IPv6. The old values are kept in a #ifndef __KERNEL__ section for userspace compatibility. Signed-off-by:Patrick McHardy <kaber@trash.net> Acked-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/linux/netfilter.h 9 additions, 0 deletionsinclude/linux/netfilter.h
- include/linux/netfilter/x_tables.h 2 additions, 2 deletionsinclude/linux/netfilter/x_tables.h
- include/linux/netfilter_ipv4.h 1 addition, 1 deletioninclude/linux/netfilter_ipv4.h
- include/linux/netfilter_ipv4/ip_tables.h 4 additions, 4 deletionsinclude/linux/netfilter_ipv4/ip_tables.h
- include/linux/netfilter_ipv6.h 1 addition, 2 deletionsinclude/linux/netfilter_ipv6.h
- include/linux/netfilter_ipv6/ip6_tables.h 4 additions, 4 deletionsinclude/linux/netfilter_ipv6/ip6_tables.h
- include/net/netfilter/nf_nat.h 2 additions, 1 deletioninclude/net/netfilter/nf_nat.h
- net/bridge/br_netfilter.c 6 additions, 6 deletionsnet/bridge/br_netfilter.c
- net/compat.c 3 additions, 3 deletionsnet/compat.c
- net/ipv4/ip_forward.c 1 addition, 1 deletionnet/ipv4/ip_forward.c
- net/ipv4/ip_input.c 2 additions, 2 deletionsnet/ipv4/ip_input.c
- net/ipv4/ip_output.c 6 additions, 6 deletionsnet/ipv4/ip_output.c
- net/ipv4/ipmr.c 1 addition, 1 deletionnet/ipv4/ipmr.c
- net/ipv4/ipvs/ip_vs_core.c 9 additions, 9 deletionsnet/ipv4/ipvs/ip_vs_core.c
- net/ipv4/ipvs/ip_vs_xmit.c 1 addition, 1 deletionnet/ipv4/ipvs/ip_vs_xmit.c
- net/ipv4/netfilter.c 4 additions, 4 deletionsnet/ipv4/netfilter.c
- net/ipv4/netfilter/ip_tables.c 22 additions, 22 deletionsnet/ipv4/netfilter/ip_tables.c
- net/ipv4/netfilter/ipt_MASQUERADE.c 2 additions, 2 deletionsnet/ipv4/netfilter/ipt_MASQUERADE.c
- net/ipv4/netfilter/ipt_NETMAP.c 7 additions, 6 deletionsnet/ipv4/netfilter/ipt_NETMAP.c
- net/ipv4/netfilter/ipt_REDIRECT.c 4 additions, 4 deletionsnet/ipv4/netfilter/ipt_REDIRECT.c
Loading
Please register or sign in to comment