router: fix Lan host reachibility due to identical RIO and PIO prefixes (FS#3056)
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 3 May 2020 19:17:53 +0000 (21:17 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 3 May 2020 20:06:08 +0000 (22:06 +0200)
commit5ce077026b991f49d96464587386f93d92f56385
tree799b1552c6e3885084ac1d6177b95c4f11b6b65f
parentf61964c66be050716089d31f13688c1ab382f0b7
router: fix Lan host reachibility due to identical RIO and PIO prefixes (FS#3056)

odhcpd includes RIO RA options according to requirement L3 in RFC7084.
However if the delegated prefix length received on the wan is equal to the
downstream delegated prefix length on the Lan this may pollute the
routing table of type C hosts as the RIO routing entry can take
precedence of the PIO routing entry meaning all traffic for the on link
hosts will go via the router iso direct on link communication.
If the traffic is dropped in the router hosts are unreachable; therefore
don't include RIO options with prefixes and prefix length identical to
those in a PIO RA option

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/router.c