|
@@ -285,7 +285,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
|
|
|
cookie_check_timestamp(&tcp_opt);
|
|
|
|
|
|
ret = NULL;
|
|
|
- req = reqsk_alloc(&tcp_request_sock_ops); /* for safety */
|
|
|
+ req = inet_reqsk_alloc(&tcp_request_sock_ops); /* for safety */
|
|
|
if (!req)
|
|
|
goto out;
|
|
|
|
|
@@ -301,7 +301,6 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
|
|
|
ireq->rmt_port = th->source;
|
|
|
ireq->loc_addr = ip_hdr(skb)->daddr;
|
|
|
ireq->rmt_addr = ip_hdr(skb)->saddr;
|
|
|
- ireq->opt = NULL;
|
|
|
ireq->snd_wscale = tcp_opt.snd_wscale;
|
|
|
ireq->rcv_wscale = tcp_opt.rcv_wscale;
|
|
|
ireq->sack_ok = tcp_opt.sack_ok;
|