diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-10-23 12:42:06 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2018-10-23 12:42:06 +0200 |
| commit | ef57f35f419f1ec6ec0dc90b07c9f1117aafa93a (patch) | |
| tree | e678587846958b0545f3fa96919d2ae873d91d58 | |
| parent | 212df1de28ae2a21145389c01cc3a1952f95c1a8 (diff) | |
zebra: add comment about Linux ifdown handling
Signed-off-by: David Lamparter <equinox@diac24.net>
| -rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index f47081d302..2192907b21 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1400,6 +1400,10 @@ static void rib_process_del_fib(struct zebra_vrf *zvrf, struct route_node *rn, } /* Update nexthop for route, reset changed flag. */ + /* Note: this code also handles the Linux case when an interface goes + * down, causing the kernel to delete routes without sending DELROUTE + * notifications + */ if (!nexthop_active_update(rn, old, 1) && (RIB_KERNEL_ROUTE(old))) SET_FLAG(old->status, ROUTE_ENTRY_REMOVED); |
