tcp: add server ip to encrypt cookie in fast open
[firefly-linux-kernel-4.4.55.git] / include / net / tcp.h
index 27b652f379efcfac8c81512093db8013a329e8c5..09cb5c11ceea34b54f46664feef3961d53c57392 100644 (file)
@@ -1300,7 +1300,8 @@ void tcp_free_fastopen_req(struct tcp_sock *tp);
 
 extern struct tcp_fastopen_context __rcu *tcp_fastopen_ctx;
 int tcp_fastopen_reset_cipher(void *key, unsigned int len);
-void tcp_fastopen_cookie_gen(__be32 addr, struct tcp_fastopen_cookie *foc);
+extern void tcp_fastopen_cookie_gen(__be32 src, __be32 dst,
+                                   struct tcp_fastopen_cookie *foc);
 
 #define TCP_FASTOPEN_KEY_LENGTH 16