]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: allow multiple connected routes for the same prefix
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 7 Sep 2017 02:54:06 +0000 (23:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 7 Sep 2017 18:00:42 +0000 (15:00 -0300)
commitc2713b2acbbf09a37db868f8b92775ea5cb41501
tree34cce12687dcc1b677cef2df4643d2f30ef0fe58
parent91288c42f84e8bd16de244468634c556efda39dd
zebra: allow multiple connected routes for the same prefix

With unnumbered interfaces on Linux we have the same IP address configured
on several different interfaces and hence multiple connected routes for
the same prefix.

With that said, add an exception in rib_add() to allow zebra to keep
track of all connected routes. We don't need to worry about the bugs
reported in a3d18ce because connected routes are always added from the
connected_up() function, and connected_update() already takes care of
handling duplicate addresses per interface.

Fixes #1112.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_rib.c