]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_rib.c
Zebra: Don't resolve nexthops over default route unless explicitly allowed.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Jun 2015 16:11:12 +0000 (09:11 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 11 Jun 2015 16:11:12 +0000 (09:11 -0700)
commit18ff3eddccd3b024677bb9b2f9c5aac8df8ecc35
tree2897fa8a3bac71f7026b833af457a6d65f865f1c
parentb881a42484b4149289ef1542400f33aba5cef1b4
Zebra: Don't resolve nexthops over default route unless explicitly allowed.

Ensure that resolution of a nexthop using a default route is not done in the
nexthop validation/update code in zebra_rib.c also. This is an addition to
the zebra-nht-no-default.patch which made the checks only in the NHT code. In
the case of scenarios like interface down, this nexthop update code will kick
in first to update the route before the NHT code comes into play; without the
additional fix, this code could incorrectly resolve the nexthop over a default
route, even when disallowed by the administrator.
lib/nexthop.h
lib/prefix.h
zebra/zebra_rib.c
zebra/zebra_rnh.c