diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-04-21 01:29:20 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-04-21 01:29:20 +0000 |
commit | 130c7b3a2876e61f85a4b53be5c2e6df561f21ed (patch) | |
tree | 98c038d173eeff13974642a783d64423f17f7bb7 /lib/smux.c | |
parent | d6a54e5cc1c985b9854bba7aedcee41ab7e7abf8 (diff) | |
download | quagga-130c7b3a2876e61f85a4b53be5c2e6df561f21ed.tar.bz2 quagga-130c7b3a2876e61f85a4b53be5c2e6df561f21ed.tar.xz |
Modifications to quagga to enable bgp, ospf and rip mib traversals
Diffstat (limited to 'lib/smux.c')
-rw-r--r-- | lib/smux.c | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1179,7 +1179,10 @@ smux_connect (struct thread *t) int ret; if (debug_smux) - zlog_debug ("SMUX connect try %d", fail + 1); + { + fail = fail + 1; + zlog_debug ("SMUX connect try %d", fail); + } /* Clear thread poner of myself. */ smux_connect_thread = NULL; @@ -1188,8 +1191,9 @@ smux_connect (struct thread *t) smux_sock = smux_socket (); if (smux_sock < 0) { - if (++fail < SMUX_MAX_FAILURE) - smux_event (SMUX_CONNECT, 0); + zlog_warn ("SMUX socket/connection creation error"); + // if (++fail < SMUX_MAX_FAILURE) + smux_event (SMUX_CONNECT, 0); return 0; } @@ -1200,8 +1204,8 @@ smux_connect (struct thread *t) zlog_warn ("SMUX open message send failed: %s", safe_strerror (errno)); close (smux_sock); smux_sock = -1; - if (++fail < SMUX_MAX_FAILURE) - smux_event (SMUX_CONNECT, 0); + // if (++fail < SMUX_MAX_FAILURE) + smux_event (SMUX_CONNECT, 0); return -1; } @@ -1212,8 +1216,8 @@ smux_connect (struct thread *t) zlog_warn ("SMUX register message send failed: %s", safe_strerror (errno)); close (smux_sock); smux_sock = -1; - if (++fail < SMUX_MAX_FAILURE) - smux_event (SMUX_CONNECT, 0); + // if (++fail < SMUX_MAX_FAILURE) + smux_event (SMUX_CONNECT, 0); return -1; } |