neigh: Better handling of transition to NUD_PROBE state
authorErik Kline <ek@google.com>
Mon, 18 May 2015 10:44:41 +0000 (19:44 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 27 May 2015 20:59:03 +0000 (05:59 +0900)
commite4a6d6ba5a9e9e1796bbe6efe4f20ce7072df667
treed7b83687fe3e255a6ea3199aedd46647f56e92b3
parent9de69da198f3ae80ab10eeb564a0783e45a2c8c3
neigh: Better handling of transition to NUD_PROBE state

[1] When entering NUD_PROBE state via neigh_update(), perhaps received
    from userspace, correctly (re)initialize the probes count to zero.

    This is useful for forcing revalidation of a neighbor (for example
    if the host is attempting to do DNA [IPv4 4436, IPv6 6059]).

[2] Notify listeners when a neighbor goes into NUD_PROBE state.

    By sending notifications on entry to NUD_PROBE state listeners get
    more timely warnings of imminent connectivity issues.

    The current notifications on entry to NUD_STALE have somewhat
    limited usefulness: NUD_STALE is a perfectly normal state, as is
    NUD_DELAY, whereas notifications on entry to NUD_FAILURE come after
    a neighbor reachability problem has been confirmed (typically after
    three probes).

Change-Id: I1d01d40ef3bc4753b0eaa79da2b27235425b1934
Signed-off-by: Erik Kline <ek@google.com>
Acked-By: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c