From 6b5f8665b0de1ebf6d51e81e3d9687dceb93c015 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Jan 2005 13:39:33 +0000 Subject: r4901: a bit more info on nbt packets under high debug level (This used to be commit 9a34af29388d8ca837c670d054a76d1f75098cbd) --- source4/libcli/nbt/nbtsocket.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/libcli/nbt') diff --git a/source4/libcli/nbt/nbtsocket.c b/source4/libcli/nbt/nbtsocket.c index 865c542ca8..8b212fb555 100644 --- a/source4/libcli/nbt/nbtsocket.c +++ b/source4/libcli/nbt/nbtsocket.c @@ -83,7 +83,8 @@ static void nbt_name_socket_send(struct nbt_name_socket *nbtsock) size_t len; if (DEBUGLVL(10)) { - DEBUG(10,("Sending nbt packet:\n")); + DEBUG(10,("Sending nbt packet to %s:%d\n", + req->dest_addr, req->dest_port)); NDR_PRINT_DEBUG(nbt_name_packet, req->request); } @@ -156,6 +157,7 @@ static void nbt_name_socket_recv(struct nbt_name_socket *nbtsock) return; } talloc_steal(tmp_ctx, src_addr); + blob.length = nread; packet = talloc(tmp_ctx, struct nbt_name_packet); if (packet == NULL) { @@ -173,7 +175,8 @@ static void nbt_name_socket_recv(struct nbt_name_socket *nbtsock) } if (DEBUGLVL(10)) { - DEBUG(10,("Received nbt packet:\n")); + DEBUG(10,("Received nbt packet of length %d from %s:%d\n", + blob.length, src_addr, src_port)); NDR_PRINT_DEBUG(nbt_name_packet, packet); } -- cgit