[quagga-dev 1081] ospfd terminates after deleting last network command

Vaya Kiran-CKV030 Kiran.Vaya at motorola.com
Tue Apr 27 16:46:00 BST 2004

I saw this message posted on Dec 9th, http://lists.quagga.net/pipermail/quagga-dev/2003-December/000529.html <http://lists.quagga.net/pipermail/quagga-dev/2003-December/000529.html>  and noticed the same failure last week even with the unstable 0.96.4 version. I also noticed that making the following code change helped eliminate the problem, which I found at http://www.cs.clemson.edu/~westall/826/zebra-0.92a/ospfd/ospf_zebra.c <http://www.cs.clemson.edu/~westall/826/zebra-0.92a/ospfd/ospf_zebra.c>  . The commented lines of code are the change.
void ospf_zebra_delete (struct prefix_ipv4 *p, struct ospf_route *or)
  struct zapi_ipv4 api;
  if (zclient->redist[ZEBRA_ROUTE_OSPF])
      api.type = ZEBRA_ROUTE_OSPF;
      api.flags = 0;
      api.message = 0;
      /* Do not send nexthop information when delete route.
      SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
      api.nexthop_num = 1;
      api.nexthop = &nexthop;
      api.ifindex_num = 0;
      /* Do not pass metric when delete route. 
        SET_FLAG (api.message, ZAPI_MESSAGE_METRIC);
        api.metric = metric;
      zapi_ipv4_delete (zclient, p, &api);
#if 0
          char *nexthop_str;
          nexthop_str = strdup (inet_ntoa (*nexthop));
          zlog_info ("Zebra: Route delete %s/%d nexthop %s",
                    inet_ntoa (p->prefix), p->prefixlen, nexthop_str);
          free (nexthop_str);
#endif /* 0 */
I am not sure what other functionality this piece of code change affects.
Any advice on the use or effects of this code change would be appreciated.
- Kiran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20040427/d8fa0f2d/attachment-0001.html>

More information about the Quagga-dev mailing list