From 7b8f58c37c7a975b93e20bd40b5195960fe22c6f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 12 Feb 2005 01:00:15 +0000 Subject: r5352: added a function nbt_name_string() that formats a nbt_name structure as a human readable string. The format is designed to be able to be used as the DN for the WINS database as well, while coping with arbitrary bytes in the name (except nul bytes) (This used to be commit aac3090e3504ba07124a9d480322a98efb97175e) --- source4/nbt_server/nodestatus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/nbt_server/nodestatus.c') diff --git a/source4/nbt_server/nodestatus.c b/source4/nbt_server/nodestatus.c index 5b79bf315f..7f8e6d4a24 100644 --- a/source4/nbt_server/nodestatus.c +++ b/source4/nbt_server/nodestatus.c @@ -82,8 +82,8 @@ static void nbtd_node_status_reply(struct nbt_name_socket *nbtsock, it could lead to giving attackers too much information */ ZERO_STRUCT(packet->answers[0].rdata.status.statistics); - DEBUG(7,("Sending node status reply for %s<%02x> to %s:%d\n", - name->name, name->type, src_address, src_port)); + DEBUG(7,("Sending node status reply for %s to %s:%d\n", + nbt_name_string(packet, name), src_address, src_port)); nbt_name_reply_send(nbtsock, src_address, src_port, packet); @@ -113,8 +113,8 @@ void nbtd_query_status(struct nbt_name_socket *nbtsock, iname = nbtd_find_iname(iface, name, NBT_NM_ACTIVE); if (iname == NULL) { - DEBUG(7,("Node status query for %s<%02x> from %s - not found on %s\n", - name->name, name->type, src_address, iface->ip_address)); + DEBUG(7,("Node status query for %s from %s - not found on %s\n", + nbt_name_string(packet, name), src_address, iface->ip_address)); return; } -- cgit