Skip to contentSkip to conversation

netns: fix proxy ARP entries listing

PATCH In review Jorge Boncompte [DTI2] 2 participants 2 messages Sep 2, 2010 – Sep 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netns: fix proxy ARP entries listing

Skip entries from foreign network namespaces.

---
 net/core/neighbour.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
net/core/neighbour.c +0 -0
index a4e0a74..4c36fa9 100644
@@ -2323,6 +2323,7 @@ static struct pneigh_entry *pneigh_get_next(struct

seq_file *seq,

        struct net *net = seq_file_net(seq);
        struct neigh_table *tbl = state->tbl;

+restart:

        pn = pn->next;
        while (!pn) {
                if (++state->bucket > PNEIGH_HASHMASK)
@@ -2334,6 +2335,9 @@ static struct pneigh_entry *pneigh_get_next(struct
seq_file *seq,
                        break;
        }

+ if (pn && !net_eq(pneigh_net(pn), net))
+ goto restart;
+

        if (pn && pos)
                --(*pos);
Signature · 1 line
1.7.1
maintainer
#1 lore raw

From: "Jorge Boncompte [DTI2]" <[email protected]>
Date: Thu, 02 Sep 2010 20:35:01 +0200

Quoted 3 lines

Skip entries from foreign network namespaces.

Your email client mangled the patch, breaking up long lines and making other textual changes to the patch, which makes it unusable.

Please report this in an unmangled form.

Thanks.