netfilter: nft_reject: split up reject module into IPv4 and IPv6 specifc parts
Currently the nft_reject module depends on symbols from ipv6. This is wrong since no generic module should force IPv6 support to be loaded. Split up the module into AF-specific and a generic part. Signed-off-by:Patrick McHardy <kaber@trash.net> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org>
Showing
- include/net/netfilter/nft_reject.h 17 additions, 0 deletionsinclude/net/netfilter/nft_reject.h
- net/ipv4/netfilter/Kconfig 5 additions, 0 deletionsnet/ipv4/netfilter/Kconfig
- net/ipv4/netfilter/Makefile 1 addition, 0 deletionsnet/ipv4/netfilter/Makefile
- net/ipv4/netfilter/nft_reject_ipv4.c 74 additions, 0 deletionsnet/ipv4/netfilter/nft_reject_ipv4.c
- net/ipv6/netfilter/Kconfig 5 additions, 0 deletionsnet/ipv6/netfilter/Kconfig
- net/ipv6/netfilter/Makefile 1 addition, 0 deletionsnet/ipv6/netfilter/Makefile
- net/ipv6/netfilter/nft_reject_ipv6.c 75 additions, 0 deletionsnet/ipv6/netfilter/nft_reject_ipv6.c
- net/netfilter/Kconfig 0 additions, 1 deletionnet/netfilter/Kconfig
- net/netfilter/nft_reject.c 9 additions, 80 deletionsnet/netfilter/nft_reject.c
include/net/netfilter/nft_reject.h
0 → 100644
net/ipv4/netfilter/nft_reject_ipv4.c
0 → 100644
net/ipv6/netfilter/nft_reject_ipv6.c
0 → 100644
Please register or sign in to comment