summaryrefslogtreecommitdiffstats
path: root/zebra/rt_ioctl.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-05 04:31:56 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-05 04:39:55 +0100
commitcf245afd5dd1f8c7c80089465e610acaaa1e2f24 (patch)
tree6065436c819b730b20a5bd30ae281e272bdfeeb1 /zebra/rt_ioctl.c
parentada3758d3977726fa3140a27a0e503787a83ab71 (diff)
downloadquagga-cf245afd5dd1f8c7c80089465e610acaaa1e2f24.tar.bz2
quagga-cf245afd5dd1f8c7c80089465e610acaaa1e2f24.tar.xz
zebra: cleanup blackhole support
blackhole support was horribly broken. cleanup by removing blackhole stuff from ZEBRA_FLAG_*, instead add a "zflags" field inside struct rib. introduces support for "prohibit" routes (Linux/netlink only) also clean up blackhole options on "ip route" vty commands.
Diffstat (limited to 'zebra/rt_ioctl.c')
-rw-r--r--zebra/rt_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_ioctl.c b/zebra/rt_ioctl.c
index a5d588c7..390e6a1d 100644
--- a/zebra/rt_ioctl.c
+++ b/zebra/rt_ioctl.c
@@ -183,7 +183,7 @@ kernel_ioctl_ipv4 (u_long cmd, struct prefix *p, struct rib *rib, int family)
#endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */
sin_dest.sin_addr = p->u.prefix4;
- if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_BLACKHOLE))
+ if (RIB_ZF_BLACKHOLE_FLAGS (rib->zflags))
{
SET_FLAG (rtentry.rt_flags, RTF_REJECT);