diff options
author | gdt <gdt> | 2004-02-13 17:44:50 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-02-13 17:44:50 +0000 |
commit | 5de5bbf107f9eacb8d8265f8c0b925b2aed21878 (patch) | |
tree | 4f9c389e0f16fbbfc58b7ff2ff29aab30f8a93c6 | |
parent | 6a8da8521d35165e9a859c84605f864feb9132d7 (diff) |
add some /* XXX assert() */ for questionable assumptions (no code
change - just notes to others).
-rw-r--r-- | lib/zclient.c | 4 |
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); |