summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:04:16 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:04:16 -0700
commitc5f7794faa51344e4b83dfd4a1fe83cccb2fa968 (patch)
tree1bdc7163a0bd1d29ee887891ee822654f8d5d331 /lib/command.c
parentca657c652da2f2545092cb03447d5f952e9d91be (diff)
Zebra: Ensure we compare prefix and NHs when checking if NH changed
In nexthop tracking, the code currently compares the nexthop state of the resolved_route for a prefix with the previous nexthop state. However, if the resolved route itself changes, we can end up comparing the RIBs of unrelated prefixes and assuming that nothing has changed. To fix this, we need to store and compare the new resolved route with the previously resolved route. If this has changed, assume the NH associated with a route has changed. Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com> Reviewed-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions