[quagga-dev 1024] Re: Problem with bgpd from quagga-0.96.4-20040329

Paul Jakma paul at clubi.ie
Thu Apr 8 00:01:07 BST 2004


On Mon, 29 Mar 2004, Krzysztof Oledzki wrote:

> Hello,
> 
> I have just switched to quagga-0.96.4-20040329 on one of my routers (r1
> - XXX.YYY.210.1). After a while I decided to add one more bgp peer (to
> r9 - XXX.YYY.210.9). Unfortunately, routers were not able setup bgp
> session. Router with new quagga (r1) logged such strange message:

urg.
 
> 2004/03/29 14:06:51 BGP: bgp_connect_success peer's fd is negative value -1

hmmm... Can you try this patch?

Index: bgpd/bgp_fsm.c
===================================================================
RCS file: /var/cvsroot/quagga/bgpd/bgp_fsm.c,v
retrieving revision 1.3
diff -u -r1.3 bgp_fsm.c
--- bgpd/bgp_fsm.c	17 Feb 2004 19:45:10 -0000	1.3
+++ bgpd/bgp_fsm.c	7 Apr 2004 23:07:27 -0000
@@ -488,13 +488,13 @@
 int
 bgp_connect_success (struct peer *peer)
 {
-  if (peer->fd_local < 0)
+  if (*peer->fd < 0)
     {
       zlog_err ("bgp_connect_success peer's fd is negative value %d",
-                peer->fd_local);
+                *peer->fd);
       return -1;
     }
-  BGP_READ_ON (peer->t_read, bgp_read, peer->fd_local);
+  BGP_READ_ON (peer->t_read, bgp_read, *peer->fd);
 
   /* bgp_getsockname (peer); */
 

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
	warning: do not ever send email to spam at dishone.st
Fortune:
Xerox never comes up with anything original.



More information about the Quagga-dev mailing list