X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Flinux%2Ftcp.h;fp=kernel%2Finclude%2Flinux%2Ftcp.h;h=318c24612458d61624a8923f524d292aab8ea0f4;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=b386361ba3e87226c329924bc1992252fcf0b9d6;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git 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 */ };