summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-06 16:26:56 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:21 +0100
commitb84be078c197f9752b53d68c882f4d1b44979b8e (patch)
treebde019464dc96ee6c66837ab90a56ed3a9f6b837 /source4/nbt_server/wins
parentfd1870e4f7370a184850e35a3d83157c664a79de (diff)
downloadsamba-b84be078c197f9752b53d68c882f4d1b44979b8e.tar.gz
samba-b84be078c197f9752b53d68c882f4d1b44979b8e.tar.bz2
samba-b84be078c197f9752b53d68c882f4d1b44979b8e.zip
r26309: Move specification of port higher up the all stack.
(This used to be commit 7de55cde7c7fe0141c05c8a38248667ebf3a9033)
Diffstat (limited to 'source4/nbt_server/wins')
-rw-r--r--source4/nbt_server/wins/winswack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winswack.c b/source4/nbt_server/wins/winswack.c
index 304edcf8de..82b16bb20d 100644
--- a/source4/nbt_server/wins/winswack.c
+++ b/source4/nbt_server/wins/winswack.c
@@ -26,6 +26,7 @@
#include "nbt_server/wins/winsserver.h"
#include "system/time.h"
#include "libcli/composite/composite.h"
+#include "param/param.h"
struct wins_challenge_state {
struct wins_challenge_io *io;
@@ -46,6 +47,7 @@ static void wins_challenge_handler(struct nbt_name_request *req)
if (state->current_address < state->io->in.num_addresses) {
struct nbtd_interface *iface;
+ state->query.in.dest_port = lp_nbt_port(global_loadparm);
state->query.in.dest_addr = state->io->in.addresses[state->current_address];
iface = nbtd_find_request_iface(state->io->in.nbtd_server, state->query.in.dest_addr, true);
@@ -103,6 +105,7 @@ struct composite_context *wins_challenge_send(TALLOC_CTX *mem_ctx, struct wins_c
/* setup a name query to the first address */
state->query.in.name = *state->io->in.name;
+ state->query.in.dest_port = lp_nbt_port(global_loadparm);
state->query.in.dest_addr = state->io->in.addresses[state->current_address];
state->query.in.broadcast = false;
state->query.in.wins_lookup = true;