sd-ndisc: drop RA packets from non-link-local addresses
authorTom Gundersen <teg@jklm.no>
Thu, 19 Nov 2015 00:23:24 +0000 (01:23 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 19 Nov 2015 00:25:40 +0000 (01:25 +0100)
commit3ccd316353532ff60326e91153677c308c032ecb
treef061178b11059bae8233c6341ee2b058e9ae678f
parent81ec9ce4a71e44c29231d813b8847ebafc11b36e
sd-ndisc: drop RA packets from non-link-local addresses

See https://tools.ietf.org/html/rfc4861#section-4.2. Some routers (dnsmasq) will send packets
from global addresses, which would break the default route setup, so ignore those.

This is also what the kernel does.
src/libsystemd-network/sd-ndisc.c