aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-02-26 04:43:04 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-26 15:46:25 -0500
commita960ff81f0cd6390940faa75a078ac76acec7940 (patch)
tree43dc27faed0507217a04bad7719f32be7ec08f1d /net
parent44a6bd865623be7154e495e228abb2a1465fe13e (diff)
neigh: probe application via netlink in NUD_PROBE
iproute2 arpd seems to expect this as there's code and comments to handle netlink probes with NUD_PROBE set. It is used to flush the arpd cached mappings. opennhrp instead turns off unicast probes (so it can handle all neighbour discovery). Without this change it will not see NUD_PROBE probes and cannot reconfirm the mapping. Thus currently neigh entry will just fail and can cause few packets dropped until broadcast discovery is restarted. Earlier discussion on the subject: http://marc.info/?t=139305877100001&r=1&w=2 Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/neighbour.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index b9e9e0d38672..36d3f8c1a2dd 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -836,10 +836,10 @@ out:
836static __inline__ int neigh_max_probes(struct neighbour *n) 836static __inline__ int neigh_max_probes(struct neighbour *n)
837{ 837{
838 struct neigh_parms *p = n->parms; 838 struct neigh_parms *p = n->parms;
839 return (n->nud_state & NUD_PROBE) ? 839 int max_probes = NEIGH_VAR(p, UCAST_PROBES) + NEIGH_VAR(p, APP_PROBES);
840 NEIGH_VAR(p, UCAST_PROBES) : 840 if (!(n->nud_state & NUD_PROBE))
841 NEIGH_VAR(p, UCAST_PROBES) + NEIGH_VAR(p, APP_PROBES) + 841 max_probes += NEIGH_VAR(p, MCAST_PROBES);
842 NEIGH_VAR(p, MCAST_PROBES); 842 return max_probes;
843} 843}
844 844
845static void neigh_invalidate(struct neighbour *neigh) 845static void neigh_invalidate(struct neighbour *neigh)