summaryrefslogtreecommitdiffstats
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-05 02:15:46 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-05 02:19:19 +0100
commit54a0b0728e3b0f4d4d4d985b6924d5f87fa06001 (patch)
treed42c124617950c251c7c5ffeb9491307fb6f1b55 /lib/zclient.h
parent2d3b742ab0c15303e008cd83f15bea869107fab9 (diff)
downloadquagga-54a0b0728e3b0f4d4d4d985b6924d5f87fa06001.tar.bz2
quagga-54a0b0728e3b0f4d4d4d985b6924d5f87fa06001.tar.xz
lib, ospfd: remove ZEBRA_FLAG_BLACKHOLE from the zclient API
FLAG_BLACKHOLE is used for different things in different places. remove it from the zclient API, instead indicate blackhole routes by ZAPI_MESSAGE_BLACKHOLE, which is converted to the proper zapi indication by zapi_ipv4_route()
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index 6a63ffa4..7cce73f5 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -85,10 +85,11 @@ struct zclient
};
/* Zebra API message flag. */
-#define ZAPI_MESSAGE_NEXTHOP 0x01
-#define ZAPI_MESSAGE_IFINDEX 0x02
-#define ZAPI_MESSAGE_DISTANCE 0x04
-#define ZAPI_MESSAGE_METRIC 0x08
+#define ZAPI_MESSAGE_NEXTHOP 0x01
+#define ZAPI_MESSAGE_IFINDEX 0x02
+#define ZAPI_MESSAGE_DISTANCE 0x04
+#define ZAPI_MESSAGE_METRIC 0x08
+#define ZAPI_MESSAGE_BLACKHOLE 0x10 /* only for zapi_ipv4_route */
/* Zserv protocol message header */
struct zserv_header