Skip to content

Commit

Permalink
netns: fix proxy ARP entries listing on a netns
Browse files Browse the repository at this point in the history
Skip entries from foreign network namespaces.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jorge Boncompte [DTI2] authored and David S. Miller committed Nov 25, 2011
1 parent 42ca020 commit df07a94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -2397,7 +2397,10 @@ static struct pneigh_entry *pneigh_get_next(struct seq_file *seq,
struct net *net = seq_file_net(seq);
struct neigh_table *tbl = state->tbl;

pn = pn->next;
do {
pn = pn->next;
} while (pn && !net_eq(pneigh_net(pn), net));

while (!pn) {
if (++state->bucket > PNEIGH_HASHMASK)
break;
Expand Down

0 comments on commit df07a94

Please sign in to comment.