OSDN Git Service

addrconf: add functionality to check on rpl requirements
authorAlexander Aring <alex.aring@gmail.com>
Fri, 27 Mar 2020 22:00:19 +0000 (18:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 05:30:57 +0000 (22:30 -0700)
commitf37c6059363403d528acf8d530bb6e8a5666a875
treec4fe6a51693fc24c9619626f663709570b1bf4cf
parentcfa933d938d896c37ca0b952437875886d84f3f5
addrconf: add functionality to check on rpl requirements

This patch adds a functionality to addrconf to check on a specific RPL
address configuration. According to RFC 6554:

To detect loops in the SRH, a router MUST determine if the SRH
includes multiple addresses assigned to any interface on that
router. If such addresses appear more than once and are separated by
at least one address not assigned to that router.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
net/ipv6/addrconf.c