netfilter: use NFPROTO_IPV4 instead of AF_INET
Subsystems (3)
PATCH 1/1 netfilter: use NFPROTO_IPV4 instead of AF_INET
The field family of xt_target should be NFPROTO_IPV4, though NFPROTO_IPV4 and AF_INET are the same.
Signed-off-by Changli Gao <[email protected]>
--- net/netfilter/xt_TPROXY.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_TPROXY.c +1 -1
@@ -76,7 +76,7 @@ static int tproxy_tg_check(const struct xt_tgchk_param *par)static struct xt_target tproxy_tg_reg__read_mostly = { .name ="TPROXY" , - .family =AF_INET , + .family =NFPROTO_IPV4 , .table ="mangle" , .target = tproxy_tg, .targetsize =sizeof (struct xt_tproxy_target_info ),
Patrick McHardy
AppliedQuoted 2 lines · Changli Gao
The field family of
xt_targetshould beNFPROTO_IPV4, thoughNFPROTO_IPV4andAF_INETare the same.
Applied, thanks.