diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-10 11:22:03 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-10 11:48:14 -0500 |
| commit | 494247b58c6161bbcb0323c86cc414f42ac0c038 (patch) | |
| tree | 602f2dbd7a18f9eedac4bc08803cf6c7fef4dd5a | |
| parent | 97c6009d49a9c122d8e70d85b5edae59a2cd4ebb (diff) | |
zebra: Update zserv debug messages to give a bit more useful info
When we schedule a packet for future handling, list the packet
type so that we can see what we are getting with debugs.
Also note which client and how many packets we received from that
client.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | tests/topotests/ospf-topo1-vrf/r1/zebra.conf | 4 | ||||
| -rw-r--r-- | zebra/zserv.c | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/topotests/ospf-topo1-vrf/r1/zebra.conf b/tests/topotests/ospf-topo1-vrf/r1/zebra.conf index b1cf342898..e826793657 100644 --- a/tests/topotests/ospf-topo1-vrf/r1/zebra.conf +++ b/tests/topotests/ospf-topo1-vrf/r1/zebra.conf @@ -1,3 +1,7 @@ +debug zebra kernel +debug zebra dplane detail +debug zebra rib +debug zebra event ! hostname r1 password zebra diff --git a/zebra/zserv.c b/zebra/zserv.c index ad052d6a70..6532491cef 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -405,8 +405,10 @@ static int zserv_read(struct thread *thread) } /* Debug packet information. */ - if (IS_ZEBRA_DEBUG_EVENT) - zlog_debug("zebra message comes from socket [%d]", + if (IS_ZEBRA_DEBUG_PACKET) + zlog_debug("zebra message[%s:%u:%u] comes from socket [%d]", + zserv_command_string(hdr.command), + hdr.vrf_id, hdr.length, sock); if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV) @@ -442,7 +444,8 @@ static int zserv_read(struct thread *thread) } if (IS_ZEBRA_DEBUG_PACKET) - zlog_debug("Read %d packets", p2p_orig - p2p); + zlog_debug("Read %d packets from client: %s", p2p_orig - p2p, + zebra_route_string(client->proto)); /* Reschedule ourselves */ zserv_client_event(client, ZSERV_CLIENT_READ); |
