[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zebra
Subject:    [zebra 1127] Re: zebra daemon dies on latest cvs state
From:       itojun () iijlab ! net
Date:       1999-07-31 16:13:59
[Download RAW message or body]


>	zebra daemon dies with the following message:
>>>1999/08/01 00:59:36 bgp route add 3ffe:500::/24 via 2e4e:: ifindex 0
>	This line seems pretty bogus.

	tiny workaround for this problem.

itojun


? zebra.core
Index: rt_socket.c
===================================================================
RCS file: /cvsroot/zebra/zebra/rt_socket.c,v
retrieving revision 1.17
diff -c -r1.17 rt_socket.c
*** rt_socket.c	1999/07/22 00:08:17	1.17
--- rt_socket.c	1999/07/31 16:09:42
***************
*** 130,136 ****
  
        ifp = if_lookup_by_index (index);      
        if (!ifp)
!         zlog (NULL, LOG_WARNING, "can't find interface of index %s", index);
        s = ifp->name;
  
        if ((sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
--- 130,139 ----
  
        ifp = if_lookup_by_index (index);      
        if (!ifp)
!         {
!           zlog (NULL, LOG_WARNING, "can't find interface of index %u", index);
! 	  goto noifname;
! 	}
        s = ifp->name;
  
        if ((sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
***************
*** 167,172 ****
--- 170,176 ----
        else
          zlog (NULL, LOG_WARNING, "can't find interface: %s", s);
      }
+ noifname:
    /* if still we don't have gate to specify, use previous way */
    if (! gate )
      {
***************
*** 200,205 ****
--- 204,215 ----
                }
  #endif /* HAVE_IPV6 */
  	  }
+     }
+ 
+   if (!gate)
+     {
+       zlog (NULL, LOG_WARNING, "no gateway");
+       return -1;
      }
  
  /* Socket length roundup function. */

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic