]> git.puffer.fish Git - mirror/frr.git/commitdiff
add some /* XXX assert() */ for questionable assumptions (no code
authorgdt <gdt>
Fri, 13 Feb 2004 17:44:50 +0000 (17:44 +0000)
committergdt <gdt>
Fri, 13 Feb 2004 17:44:50 +0000 (17:44 +0000)
change - just notes to others).

lib/zclient.c

index bba06ee4be3957a15fb2c9bb849f7dcafb4683d6..e76652dff985c39ed699a18a6ee4d69785ab56c2 100644 (file)
@@ -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);