From b84be078c197f9752b53d68c882f4d1b44979b8e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 6 Dec 2007 16:26:56 +0100 Subject: r26309: Move specification of port higher up the all stack. (This used to be commit 7de55cde7c7fe0141c05c8a38248667ebf3a9033) --- source4/libcli/nbt/libnbt.h | 1 + source4/libcli/nbt/namequery.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/libcli/nbt') diff --git a/source4/libcli/nbt/libnbt.h b/source4/libcli/nbt/libnbt.h index e383591089..2f7ce8d1b4 100644 --- a/source4/libcli/nbt/libnbt.h +++ b/source4/libcli/nbt/libnbt.h @@ -128,6 +128,7 @@ struct nbt_name_query { struct { struct nbt_name name; const char *dest_addr; + uint16_t dest_port; bool broadcast; bool wins_lookup; int timeout; /* in seconds */ diff --git a/source4/libcli/nbt/namequery.c b/source4/libcli/nbt/namequery.c index 755e06e880..6bc6878194 100644 --- a/source4/libcli/nbt/namequery.c +++ b/source4/libcli/nbt/namequery.c @@ -54,7 +54,7 @@ _PUBLIC_ struct nbt_name_request *nbt_name_query_send(struct nbt_name_socket *nb packet->questions[0].question_class = NBT_QCLASS_IP; dest = socket_address_from_strings(packet, nbtsock->sock->backend_name, - io->in.dest_addr, lp_nbt_port(global_loadparm)); + io->in.dest_addr, io->in.dest_port); if (dest == NULL) goto failed; req = nbt_name_request_send(nbtsock, dest, packet, io->in.timeout, io->in.retries, false); -- cgit