diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/neighbour.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index a4f26187fc1a..11590f23d99d 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -34,6 +34,7 @@ struct neighbour; | |||
34 | 34 | ||
35 | struct neigh_parms | 35 | struct neigh_parms |
36 | { | 36 | { |
37 | struct net *net; | ||
37 | struct net_device *dev; | 38 | struct net_device *dev; |
38 | struct neigh_parms *next; | 39 | struct neigh_parms *next; |
39 | int (*neigh_setup)(struct neighbour *); | 40 | int (*neigh_setup)(struct neighbour *); |
@@ -126,7 +127,8 @@ struct neigh_ops | |||
126 | struct pneigh_entry | 127 | struct pneigh_entry |
127 | { | 128 | { |
128 | struct pneigh_entry *next; | 129 | struct pneigh_entry *next; |
129 | struct net_device *dev; | 130 | struct net *net; |
131 | struct net_device *dev; | ||
130 | u8 flags; | 132 | u8 flags; |
131 | u8 key[0]; | 133 | u8 key[0]; |
132 | }; | 134 | }; |
@@ -187,6 +189,7 @@ extern struct neighbour * neigh_lookup(struct neigh_table *tbl, | |||
187 | const void *pkey, | 189 | const void *pkey, |
188 | struct net_device *dev); | 190 | struct net_device *dev); |
189 | extern struct neighbour * neigh_lookup_nodev(struct neigh_table *tbl, | 191 | extern struct neighbour * neigh_lookup_nodev(struct neigh_table *tbl, |
192 | struct net *net, | ||
190 | const void *pkey); | 193 | const void *pkey); |
191 | extern struct neighbour * neigh_create(struct neigh_table *tbl, | 194 | extern struct neighbour * neigh_create(struct neigh_table *tbl, |
192 | const void *pkey, | 195 | const void *pkey, |
@@ -211,8 +214,8 @@ extern unsigned long neigh_rand_reach_time(unsigned long base); | |||
211 | 214 | ||
212 | extern void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, | 215 | extern void pneigh_enqueue(struct neigh_table *tbl, struct neigh_parms *p, |
213 | struct sk_buff *skb); | 216 | struct sk_buff *skb); |
214 | extern struct pneigh_entry *pneigh_lookup(struct neigh_table *tbl, const void *key, struct net_device *dev, int creat); | 217 | extern struct pneigh_entry *pneigh_lookup(struct neigh_table *tbl, struct net *net, const void *key, struct net_device *dev, int creat); |
215 | extern int pneigh_delete(struct neigh_table *tbl, const void *key, struct net_device *dev); | 218 | extern int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *key, struct net_device *dev); |
216 | 219 | ||
217 | extern void neigh_app_ns(struct neighbour *n); | 220 | extern void neigh_app_ns(struct neighbour *n); |
218 | extern void neigh_for_each(struct neigh_table *tbl, void (*cb)(struct neighbour *, void *), void *cookie); | 221 | extern void neigh_for_each(struct neigh_table *tbl, void (*cb)(struct neighbour *, void *), void *cookie); |
@@ -220,6 +223,7 @@ extern void __neigh_for_each_release(struct neigh_table *tbl, int (*cb)(struct n | |||
220 | extern void pneigh_for_each(struct neigh_table *tbl, void (*cb)(struct pneigh_entry *)); | 223 | extern void pneigh_for_each(struct neigh_table *tbl, void (*cb)(struct pneigh_entry *)); |
221 | 224 | ||
222 | struct neigh_seq_state { | 225 | struct neigh_seq_state { |
226 | struct net *net; | ||
223 | struct neigh_table *tbl; | 227 | struct neigh_table *tbl; |
224 | void *(*neigh_sub_iter)(struct neigh_seq_state *state, | 228 | void *(*neigh_sub_iter)(struct neigh_seq_state *state, |
225 | struct neighbour *n, loff_t *pos); | 229 | struct neighbour *n, loff_t *pos); |