aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ipv6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ipv6.h')
-rw-r--r--include/linux/ipv6.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index 7d3908594fac..a0d04891fe12 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -360,7 +360,8 @@ struct tcp6_timewait_sock {
360 360
361static inline u16 inet6_tw_offset(const struct proto *prot) 361static inline u16 inet6_tw_offset(const struct proto *prot)
362{ 362{
363 return prot->twsk_obj_size - sizeof(struct inet6_timewait_sock); 363 return prot->twsk_prot->twsk_obj_size -
364 sizeof(struct inet6_timewait_sock);
364} 365}
365 366
366static inline struct inet6_timewait_sock *inet6_twsk(const struct sock *sk) 367static inline struct inet6_timewait_sock *inet6_twsk(const struct sock *sk)