summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-31 17:16:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:27 -0500
commitca3f70256ac0430e2db846d0293a7750a6d3ef6b (patch)
treee5b29b99c6164bb2a077b8b608c9b4966bcbb55d /source4/nbt_server
parent3b6fb593144290d5bf97d601ae99708880ff781f (diff)
downloadsamba-ca3f70256ac0430e2db846d0293a7750a6d3ef6b.tar.gz
samba-ca3f70256ac0430e2db846d0293a7750a6d3ef6b.tar.bz2
samba-ca3f70256ac0430e2db846d0293a7750a6d3ef6b.zip
r5145: define struct ipv4_addr in misc.idl,
so we can use it in nbt.idl and get a nicer debug output metze (This used to be commit abacbc9192646f6f3c720758ab65889b82b9ae7b)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/query.c2
-rw-r--r--source4/nbt_server/winsserver.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c
index 859a9c7f26..9b9d1e29b9 100644
--- a/source4/nbt_server/query.c
+++ b/source4/nbt_server/query.c
@@ -60,7 +60,7 @@ static void nbt_name_query_reply(struct nbt_name_socket *nbtsock,
struct nbt_rdata_address, 1);
if (packet->answers[0].rdata.netbios.addresses == NULL) goto failed;
packet->answers[0].rdata.netbios.addresses[0].nb_flags = nb_flags;
- packet->answers[0].rdata.netbios.addresses[0].ipaddr = htonl(inet_addr(address));
+ packet->answers[0].rdata.netbios.addresses[0].ipaddr.addr = htonl(inet_addr(address));
DEBUG(7,("Sending name query reply for %s<%02x> at %s to %s:%d\n",
name->name, name->type, src_address, address, src_port));
diff --git a/source4/nbt_server/winsserver.c b/source4/nbt_server/winsserver.c
index a659772cb3..7810bebd24 100644
--- a/source4/nbt_server/winsserver.c
+++ b/source4/nbt_server/winsserver.c
@@ -32,4 +32,7 @@ void nbt_query_wins(struct nbt_name_socket *nbtsock,
const char *src_address, int src_port)
{
DEBUG(0,("WINS query from %s\n", src_address));
+ if (DEBUGLVL(10)) {
+ NDR_PRINT_DEBUG(nbt_name_packet, packet);
+ }
}