NetworkManager/src/ndisc
Beniamino Galvani 08fdea122d ipv6: set neighbor parameters from RAs
IPv6 router advertisement messages contain the following parameters
(RFC 4861):

 - Reachable time: 32-bit unsigned integer.  The time, in
   milliseconds, that a node assumes a neighbor is reachable after
   having received a reachability confirmation.  Used by the Neighbor
   Unreachability Detection algorithm.  A value of zero means
   unspecified (by this router).

 - Retrans Timer: 32-bit unsigned integer.  The time, in milliseconds,
   between retransmitted Neighbor Solicitation messages.  Used by
   address resolution and the Neighbor Unreachability Detection
   algorithm.   A value of zero means unspecified (by this router).

Currently NM ignores them; however, since it leaves accept_ra=1, the
kernel parses RAs and applies those parameters for us [1].

In the next commit kernel handling of RAs will be disabled, so let NM
set those neighbor-related parameters.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv6/ndisc.c?h=v5.2#n1353

(cherry picked from commit 5f0c6f8d3b)
2019-11-15 16:17:33 +01:00
..
tests all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-fake-ndisc.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-fake-ndisc.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-lndp-ndisc.c ipv6: set neighbor parameters from RAs 2019-11-15 16:17:33 +01:00
nm-lndp-ndisc.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-ndisc-private.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-ndisc.c ipv6: set neighbor parameters from RAs 2019-11-15 16:17:33 +01:00
nm-ndisc.h ipv6: set neighbor parameters from RAs 2019-11-15 16:17:33 +01:00