diff options
author | hasso <hasso> | 2003-05-25 19:21:25 +0000 |
---|---|---|
committer | hasso <hasso> | 2003-05-25 19:21:25 +0000 |
commit | 81dfcaa2e27d53f4eb61c549e03065dcb1b8eec3 (patch) | |
tree | 2aed449138a4833fe343052cdfa505be74332cb4 /lib | |
parent | 15291357d130b804dcdcfd81bdb1b86a84567fd0 (diff) |
Route (reject|blackhole) support from 6Wind patch.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zclient.c | 12 | ||||
-rw-r--r-- | lib/zebra.h | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index c1b286f4..ebf685a0 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -317,12 +317,6 @@ zapi_ipv4_add (struct zclient *zclient, struct prefix_ipv4 *p, /* Nexthop, ifindex, distance and metric information. */ if (CHECK_FLAG (api->message, ZAPI_MESSAGE_NEXTHOP)) { - if (CHECK_FLAG (api->flags, ZEBRA_FLAG_BLACKHOLE)) - { - stream_putc (s, 1); - stream_putc (s, ZEBRA_NEXTHOP_BLACKHOLE); - } - else stream_putc (s, api->nexthop_num + api->ifindex_num); for (i = 0; i < api->nexthop_num; i++) @@ -377,12 +371,6 @@ zapi_ipv4_delete (struct zclient *zclient, struct prefix_ipv4 *p, /* Nexthop, ifindex, distance and metric information. */ if (CHECK_FLAG (api->message, ZAPI_MESSAGE_NEXTHOP)) { - if (CHECK_FLAG (api->flags, ZEBRA_FLAG_BLACKHOLE)) - { - stream_putc (s, 1); - stream_putc (s, ZEBRA_NEXTHOP_BLACKHOLE); - } - else stream_putc (s, api->nexthop_num + api->ifindex_num); for (i = 0; i < api->nexthop_num; i++) diff --git a/lib/zebra.h b/lib/zebra.h index b771b56b..175eb6e2 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -256,6 +256,7 @@ struct in_pktinfo #define ZEBRA_FLAG_SELECTED 0x10 #define ZEBRA_FLAG_CHANGED 0x20 #define ZEBRA_FLAG_STATIC 0x40 +#define ZEBRA_FLAG_REJECT 0x80 /* Zebra nexthop flags. */ #define ZEBRA_NEXTHOP_IFINDEX 1 @@ -266,7 +267,6 @@ struct in_pktinfo #define ZEBRA_NEXTHOP_IPV6 6 #define ZEBRA_NEXTHOP_IPV6_IFINDEX 7 #define ZEBRA_NEXTHOP_IPV6_IFNAME 8 -#define ZEBRA_NEXTHOP_BLACKHOLE 9 #ifndef INADDR_LOOPBACK #define INADDR_LOOPBACK 0x7f000001 /* Internet address 127.0.0.1. */ |