netfilter: nft_reject: unify reject init and dump into nft_reject
authorJose M. Guisado Gomez <guigom@riseup.net>
Thu, 22 Oct 2020 19:43:52 +0000 (21:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 31 Oct 2020 09:40:42 +0000 (10:40 +0100)
commit312ca575a50543a886a5dfa2af1e72aa6a5b601e
treee3d1af659e2158ea06925f39cd99e78d6c7d9dca
parentfa538f7cf05aab61cd91e01c160d4a09c81b8ffe
netfilter: nft_reject: unify reject init and dump into nft_reject

Bridge family is using the same static init and dump function as inet.

This patch removes duplicate code unifying these functions body into
nft_reject.c so they can be reused in the rest of families supporting
reject verdict.

Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/nft_reject_bridge.c
net/netfilter/nft_reject.c
net/netfilter/nft_reject_inet.c