summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgdt <gdt>2004-02-13 17:44:50 +0000
committergdt <gdt>2004-02-13 17:44:50 +0000
commit5de5bbf107f9eacb8d8265f8c0b925b2aed21878 (patch)
tree4f9c389e0f16fbbfc58b7ff2ff29aab30f8a93c6 /lib
parent6a8da8521d35165e9a859c84605f864feb9132d7 (diff)
add some /* XXX assert() */ for questionable assumptions (no code
change - just notes to others).
Diffstat (limited to 'lib')
-rw-r--r--lib/zclient.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index bba06ee4..e76652df 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -321,6 +321,8 @@ zapi_ipv4_add (struct zclient *zclient, struct prefix_ipv4 *p,
{
stream_putc (s, 1);
stream_putc (s, ZEBRA_NEXTHOP_BLACKHOLE);
+ /* XXX assert(api->nexthop_num == 0); */
+ /* XXX assert(api->ifindex_num == 0); */
}
else
stream_putc (s, api->nexthop_num + api->ifindex_num);
@@ -381,6 +383,8 @@ zapi_ipv4_delete (struct zclient *zclient, struct prefix_ipv4 *p,
{
stream_putc (s, 1);
stream_putc (s, ZEBRA_NEXTHOP_BLACKHOLE);
+ /* XXX assert(api->nexthop_num == 0); */
+ /* XXX assert(api->ifindex_num == 0); */
}
else
stream_putc (s, api->nexthop_num + api->ifindex_num);