diff options
author | Eric Dumazet <edumazet@google.com> | 2015-06-04 18:30:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-07 15:19:52 -0700 |
commit | b80c0e78582d4a3a004dc1ade4eb06babc6a4eea (patch) | |
tree | f2dda925e65212d4baacaa01a8b85f462a35b753 /include/net | |
parent | 13ea657806cf73b379a0109f7042182f47c351a7 (diff) | |
download | op-kernel-dev-b80c0e78582d4a3a004dc1ade4eb06babc6a4eea.zip op-kernel-dev-b80c0e78582d4a3a004dc1ade4eb06babc6a4eea.tar.gz |
tcp: get_cookie_sock() consolidation
IPv4 and IPv6 share same implementation of get_cookie_sock(),
and there is no point inlining it.
We add tcp_ prefix to the common helper name and export it.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 2bb2bad..978cebe 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -469,6 +469,9 @@ int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size); void inet_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb); /* From syncookies.c */ +struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb, + struct request_sock *req, + struct dst_entry *dst); int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, u32 cookie); struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb); |