summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2003-07-06 23:32:45 +1000
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2003-07-06 23:32:45 +1000
commitd12fd76789e80ae337408834f45dae7cba23fc55 (patch)
treeb00917d07d4b6ba81338115ae5f529d3446e4ec0 /net/core
parent71ac7ef2bb70c31c4970cb1a916b76faf9ca8341 (diff)
[NET] Send only unicast NSs in PROBE state.
Diffstat (limited to 'net/core')
-rw-r--r--net/core/neighbour.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index c640ad5b41f9..001fdb40e6de 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -608,7 +608,9 @@ next_elt:
static __inline__ int neigh_max_probes(struct neighbour *n)
{
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);
}