Commit d12fd767 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[NET] Send only unicast NSs in PROBE state.

parent 71ac7ef2
...@@ -608,7 +608,9 @@ static void neigh_periodic_timer(unsigned long arg) ...@@ -608,7 +608,9 @@ static void neigh_periodic_timer(unsigned long arg)
static __inline__ int neigh_max_probes(struct neighbour *n) static __inline__ int neigh_max_probes(struct neighbour *n)
{ {
struct neigh_parms *p = n->parms; struct neigh_parms *p = n->parms;
return p->ucast_probes + p->app_probes + p->mcast_probes; return (n->nud_state & NUD_PROBE ?
p->ucast_probes :
p->ucast_probes + p->app_probes + p->mcast_probes);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment