Skip to content

Commit 22f2efd

Browse files
committed
netfilter: synproxy: use nf_cookie_v6_check() from core
This helper function is never used and it is intended to avoid a direct dependency with the ipv6 module. Fixes: d7f9b2f ("netfilter: synproxy: extract SYNPROXY infrastructure from {ipt, ip6t}_SYNPROXY") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 8527fa6 commit 22f2efd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/netfilter/nf_synproxy_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ synproxy_recv_client_ack_ipv6(struct net *net,
10561056
struct synproxy_net *snet = synproxy_pernet(net);
10571057
int mss;
10581058

1059-
mss = __cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1);
1059+
mss = nf_cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1);
10601060
if (mss == 0) {
10611061
this_cpu_inc(snet->stats->cookie_invalid);
10621062
return false;

0 commit comments

Comments
 (0)