tcp: Clear req->syncookie in reqsk_alloc().
[linux-2.6-microblaze.git] / net / ipv4 / syncookies.c
index 7972ad3..500f665 100644 (file)
@@ -474,6 +474,9 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb)
                                  ireq->wscale_ok, &rcv_wscale,
                                  dst_metric(&rt->dst, RTAX_INITRWND));
 
+       /* req->syncookie is set true only if ACK is validated
+        * by BPF kfunc, then, rcv_wscale is already configured.
+        */
        if (!req->syncookie)
                ireq->rcv_wscale = rcv_wscale;
        ireq->ecn_ok &= cookie_ecn_ok(net, &rt->dst);