diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-05 04:58:46 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-05 05:58:13 +0100 |
commit | 38c85a4010c812a381a3e3f14bfac5db7f192d99 (patch) | |
tree | 49ca29bfa2aa2604a5af0f34621134b9dbd246fd /zebra/zebra_rib.c | |
parent | cf245afd5dd1f8c7c80089465e610acaaa1e2f24 (diff) | |
download | quagga-38c85a4010c812a381a3e3f14bfac5db7f192d99.tar.bz2 quagga-38c85a4010c812a381a3e3f14bfac5db7f192d99.tar.xz |
zebra: netlink: grab blackhole list from kernel
support processing of RTM_BLACKHOLE et al. from kernel and dump them
into appropriate blackhole rib entries.
this exhibits the deletion bug famously fixed by Joakim Tjernlund, if
that patch isn't applied blackhole route deletion from kernel doesn't
work...
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 28ca3b12..0f2e7784 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1562,7 +1562,9 @@ rib_add_ipv4 (int type, int flags, struct prefix_ipv4 *p, rib->uptime = time (NULL); /* Nexthop settings. */ - if (gate) + if (RIB_ZF_BLACKHOLE_FLAGS (rib->zflags)) + nexthop_blackhole_add (rib); + else if (gate) { if (ifindex) nexthop_ipv4_ifindex_add (rib, gate, src, ifindex); |