aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/neighbour.h
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:53:12 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:37 -0500
commit4250846146c04ac6f17bf92619ddfef6db2cf34f (patch)
tree4fb27a2735e521f34ae4f2d20b39936db1b632e7 /include/net/neighbour.h
parentae22120ad846399f6aa19c5b32f8d4c7bd068fd1 (diff)
[NEIGH]: Make /proc/net/arp opening consistent with seq_net_open semantics
seq_open_net requires that first field of the seq->private data to be struct seq_net_private. In reality this is a single pointer to a struct net for now. The patch makes code consistent. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r--include/net/neighbour.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index a9dda2908211..09f9fc60a779 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -223,7 +223,7 @@ extern void __neigh_for_each_release(struct neigh_table *tbl, int (*cb)(struct n
223extern void pneigh_for_each(struct neigh_table *tbl, void (*cb)(struct pneigh_entry *)); 223extern void pneigh_for_each(struct neigh_table *tbl, void (*cb)(struct pneigh_entry *));
224 224
225struct neigh_seq_state { 225struct neigh_seq_state {
226 struct net *net; 226 struct seq_net_private p;
227 struct neigh_table *tbl; 227 struct neigh_table *tbl;
228 void *(*neigh_sub_iter)(struct neigh_seq_state *state, 228 void *(*neigh_sub_iter)(struct neigh_seq_state *state,
229 struct neighbour *n, loff_t *pos); 229 struct neighbour *n, loff_t *pos);