From: gdt Date: Fri, 13 Feb 2004 17:44:50 +0000 (+0000) Subject: add some /* XXX assert() */ for questionable assumptions (no code X-Git-Tag: frr-2.0-rc1~3787 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5de5bbf107f9eacb8d8265f8c0b925b2aed21878;p=matthieu%2Ffrr.git add some /* XXX assert() */ for questionable assumptions (no code change - just notes to others). --- diff --git a/lib/zclient.c b/lib/zclient.c index bba06ee4be..e76652dff9 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);