aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 869637a7caf7..3a4bbbfdcf8d 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -468,8 +468,7 @@ void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb);
468/* From syncookies.c */ 468/* From syncookies.c */
469int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, 469int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
470 u32 cookie); 470 u32 cookie);
471struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, 471struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb);
472 struct ip_options *opt);
473#ifdef CONFIG_SYN_COOKIES 472#ifdef CONFIG_SYN_COOKIES
474 473
475/* Syncookies use a monotonic timer which increments every 60 seconds. 474/* Syncookies use a monotonic timer which increments every 60 seconds.
@@ -1674,7 +1673,7 @@ static inline struct ip_options_rcu *tcp_v4_save_options(struct sk_buff *skb)
1674 const struct ip_options *opt = &TCP_SKB_CB(skb)->header.h4.opt; 1673 const struct ip_options *opt = &TCP_SKB_CB(skb)->header.h4.opt;
1675 struct ip_options_rcu *dopt = NULL; 1674 struct ip_options_rcu *dopt = NULL;
1676 1675
1677 if (opt && opt->optlen) { 1676 if (opt->optlen) {
1678 int opt_size = sizeof(*dopt) + opt->optlen; 1677 int opt_size = sizeof(*dopt) + opt->optlen;
1679 1678
1680 dopt = kmalloc(opt_size, GFP_ATOMIC); 1679 dopt = kmalloc(opt_size, GFP_ATOMIC);