summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/tcp.h')
-rw-r--r--kernel/include/linux/tcp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/include/linux/tcp.h b/kernel/include/linux/tcp.h
index b386361ba..318c24612 100644
--- a/kernel/include/linux/tcp.h
+++ b/kernel/include/linux/tcp.h
@@ -56,8 +56,13 @@ static inline unsigned int tcp_optlen(const struct sk_buff *skb)
/* TCP Fast Open Cookie as stored in memory */
struct tcp_fastopen_cookie {
+ union {
+ u8 val[TCP_FASTOPEN_COOKIE_MAX];
+#if IS_ENABLED(CONFIG_IPV6)
+ struct in6_addr addr;
+#endif
+ };
s8 len;
- u8 val[TCP_FASTOPEN_COOKIE_MAX];
bool exp; /* In RFC6994 experimental option format */
};