]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: share tcp_v4_save_options() with cookie_v4_check()
authorCong Wang <cwang@twopensource.com>
Wed, 15 Oct 2014 21:33:21 +0000 (14:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Oct 2014 16:02:57 +0000 (12:02 -0400)
commit3f05b260db70e3654e6c9c8a7204a20714209058
treedf2c77e0b95e195dc496bba98155e2c62b9a80cd
parent1fcd2c4a59af283c3d60ccb27172bd69fdf538af
ipv4: share tcp_v4_save_options() with cookie_v4_check()

cookie_v4_check() allocates ip_options_rcu in the same way
with tcp_v4_save_options(), we can just make it a helper function.

Cc: Krzysztof Kolasa <kkolasa@winsoft.pl>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp_ipv4.c