From: Jorge Boncompte [DTI2] Date: Fri, 25 Nov 2011 18:24:49 +0000 (-0500) Subject: netns: fix proxy ARP entries listing on a netns X-Git-Tag: MMI-PSA29.97-13-9~17939^2~33 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df07a94cf50eb73d09bf2350c3fe2598e4cbeee1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git netns: fix proxy ARP entries listing on a netns Skip entries from foreign network namespaces. Signed-off-by: Jorge Boncompte [DTI2] Signed-off-by: David S. Miller --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 039d51e6c284..5ac07d31fbc9 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -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;