ip: source address selection 49/33449/9
authorOle Troan <ot@cisco.com>
Wed, 11 Aug 2021 11:54:14 +0000 (13:54 +0200)
committerNeale Ranns <neale@graphiant.com>
Fri, 13 Aug 2021 18:07:23 +0000 (18:07 +0000)
commit8034a36a9cedc95f6762bf0a07f6617d0bf69bfe
treed22313b64c46a26c5c46fcf8c2cb799b02e92197
parentd170681b24724c522adaf1e2f4f0e1f3289dbf82
ip: source address selection

Implement a simple source address selection algorithm
for IPv4 and IPv6.
IPv6 does not yet implement RFC6724 but supports link-locals.
ping now chooses correct source address for link-local destination.
Added ping support for link-local multicast (e.g. allnodes).

Type: feature
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I1a3382c1f7d4ace0386c2c19e4e47b045b73a3ed
Signed-off-by: Ole Troan <ot@cisco.com>
src/plugins/dns/dns.c
src/plugins/ping/ping.c
src/vnet/CMakeLists.txt
src/vnet/ip/icmp4.c
src/vnet/ip/icmp6.c
src/vnet/ip/ip_sas.c [new file with mode: 0644]
src/vnet/ip/ip_sas.h [new file with mode: 0644]