diff options
Diffstat (limited to 'include/net/ip.h')
-rw-r--r-- | include/net/ip.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 63548f0a44b1..d52f01180361 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -61,11 +61,14 @@ struct ipcm_cookie { | |||
61 | struct ip_ra_chain { | 61 | struct ip_ra_chain { |
62 | struct ip_ra_chain *next; | 62 | struct ip_ra_chain *next; |
63 | struct sock *sk; | 63 | struct sock *sk; |
64 | void (*destructor)(struct sock *); | 64 | union { |
65 | void (*destructor)(struct sock *); | ||
66 | struct sock *saved_sk; | ||
67 | }; | ||
68 | struct rcu_head rcu; | ||
65 | }; | 69 | }; |
66 | 70 | ||
67 | extern struct ip_ra_chain *ip_ra_chain; | 71 | extern struct ip_ra_chain *ip_ra_chain; |
68 | extern rwlock_t ip_ra_lock; | ||
69 | 72 | ||
70 | /* IP flags. */ | 73 | /* IP flags. */ |
71 | #define IP_CE 0x8000 /* Flag: "Congestion" */ | 74 | #define IP_CE 0x8000 /* Flag: "Congestion" */ |
@@ -358,11 +361,11 @@ enum ip_defrag_users { | |||
358 | IP_DEFRAG_LOCAL_DELIVER, | 361 | IP_DEFRAG_LOCAL_DELIVER, |
359 | IP_DEFRAG_CALL_RA_CHAIN, | 362 | IP_DEFRAG_CALL_RA_CHAIN, |
360 | IP_DEFRAG_CONNTRACK_IN, | 363 | IP_DEFRAG_CONNTRACK_IN, |
361 | __IP_DEFRAG_CONNTRACK_IN_END = IP_DEFRAG_CONNTRACK_IN + USHORT_MAX, | 364 | __IP_DEFRAG_CONNTRACK_IN_END = IP_DEFRAG_CONNTRACK_IN + USHRT_MAX, |
362 | IP_DEFRAG_CONNTRACK_OUT, | 365 | IP_DEFRAG_CONNTRACK_OUT, |
363 | __IP_DEFRAG_CONNTRACK_OUT_END = IP_DEFRAG_CONNTRACK_OUT + USHORT_MAX, | 366 | __IP_DEFRAG_CONNTRACK_OUT_END = IP_DEFRAG_CONNTRACK_OUT + USHRT_MAX, |
364 | IP_DEFRAG_CONNTRACK_BRIDGE_IN, | 367 | IP_DEFRAG_CONNTRACK_BRIDGE_IN, |
365 | __IP_DEFRAG_CONNTRACK_BRIDGE_IN = IP_DEFRAG_CONNTRACK_BRIDGE_IN + USHORT_MAX, | 368 | __IP_DEFRAG_CONNTRACK_BRIDGE_IN = IP_DEFRAG_CONNTRACK_BRIDGE_IN + USHRT_MAX, |
366 | IP_DEFRAG_VS_IN, | 369 | IP_DEFRAG_VS_IN, |
367 | IP_DEFRAG_VS_OUT, | 370 | IP_DEFRAG_VS_OUT, |
368 | IP_DEFRAG_VS_FWD | 371 | IP_DEFRAG_VS_FWD |