version 1.1.1.2, 2012/10/09 09:22:28
|
version 1.1.1.3, 2013/07/21 23:54:37
|
Line 597 bgp_stop_with_error (struct peer *peer)
|
Line 597 bgp_stop_with_error (struct peer *peer)
|
static int |
static int |
bgp_connect_success (struct peer *peer) |
bgp_connect_success (struct peer *peer) |
{ |
{ |
char buf1[BUFSIZ]; |
|
|
|
if (peer->fd < 0) |
if (peer->fd < 0) |
{ |
{ |
zlog_err ("bgp_connect_success peer's fd is negative value %d", |
zlog_err ("bgp_connect_success peer's fd is negative value %d", |
Line 612 bgp_connect_success (struct peer *peer)
|
Line 610 bgp_connect_success (struct peer *peer)
|
|
|
if (BGP_DEBUG (normal, NORMAL)) |
if (BGP_DEBUG (normal, NORMAL)) |
{ |
{ |
|
char buf1[SU_ADDRSTRLEN]; |
|
|
if (! CHECK_FLAG (peer->sflags, PEER_STATUS_ACCEPT_PEER)) |
if (! CHECK_FLAG (peer->sflags, PEER_STATUS_ACCEPT_PEER)) |
zlog_debug ("%s open active, local address %s", peer->host, |
zlog_debug ("%s open active, local address %s", peer->host, |
sockunion2str (peer->su_local, buf1, SU_ADDRSTRLEN)); |
sockunion2str (peer->su_local, buf1, SU_ADDRSTRLEN)); |