diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-21 13:39:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:05 -0500 |
commit | 6b5f8665b0de1ebf6d51e81e3d9687dceb93c015 (patch) | |
tree | 7c9a21cca3ac729a33c2f9a5999f93b5c35eb47f | |
parent | 51f3a6a5e86ab648365a03d3188002ffc94afd41 (diff) | |
download | samba-6b5f8665b0de1ebf6d51e81e3d9687dceb93c015.tar.gz samba-6b5f8665b0de1ebf6d51e81e3d9687dceb93c015.tar.bz2 samba-6b5f8665b0de1ebf6d51e81e3d9687dceb93c015.zip |
r4901: a bit more info on nbt packets under high debug level
(This used to be commit 9a34af29388d8ca837c670d054a76d1f75098cbd)
-rw-r--r-- | source4/libcli/nbt/nbtsocket.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); } |