summaryrefslogtreecommitdiff
path: root/proto/bgp
diff options
context:
space:
mode:
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/bgp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index cca1283c..122b0c22 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -217,6 +217,8 @@ bgp_open(struct bgp_proto *p)
req->port = p->cf->local_port;
req->flags = p->cf->free_bind ? SKF_FREEBIND : 0;
+ BGP_TRACE(D_EVENTS, "Requesting listen socket at %I%J port %u", req->addr, req->iface, req->port);
+
add_tail(&bgp_listen_pending, &req->n);
ev_schedule(&bgp_listen_event);
}
@@ -243,7 +245,9 @@ bgp_listen_create(void *_ UNUSED)
break;
/* Not found any */
- if (!NODE_VALID(bs))
+ if (NODE_VALID(bs))
+ BGP_TRACE(D_EVENTS, "Found a listening socket: %p", bs);
+ else
{
sock *sk = sk_new(proto_pool);
sk->type = SK_TCP_PASSIVE;
@@ -275,6 +279,8 @@ bgp_listen_create(void *_ UNUSED)
init_list(&bs->requests);
add_tail(&bgp_sockets, &bs->n);
+
+ BGP_TRACE(D_EVENTS, "Created new listening socket: %p", bs);
}
add_tail(&bs->requests, &req->n);