summaryrefslogtreecommitdiff
path: root/source4/torture
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/torture
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/torture')
-rw-r--r--source4/torture/nbt/query.c2
-rw-r--r--source4/torture/nbt/wins.c2
-rw-r--r--source4/torture/nbt/winsbench.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/nbt/query.c b/source4/torture/nbt/query.c
index 1040335227..c5104f5f06 100644
--- a/source4/torture/nbt/query.c
+++ b/source4/torture/nbt/query.c
@@ -24,6 +24,7 @@
#include "libcli/resolve/resolve.h"
#include "torture/torture.h"
#include "torture/nbt/proto.h"
+#include "param/param.h"
struct result_struct {
int num_pass;
@@ -61,6 +62,7 @@ static bool bench_namequery(struct torture_context *tctx)
io.in.name = name;
io.in.dest_addr = address;
+ io.in.dest_port = lp_nbt_port(global_loadparm);
io.in.broadcast = false;
io.in.wins_lookup = false;
io.in.timeout = 1;
diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c
index e25c3e78f0..fe87d7f971 100644
--- a/source4/torture/nbt/wins.c
+++ b/source4/torture/nbt/wins.c
@@ -27,6 +27,7 @@
#include "librpc/gen_ndr/ndr_nbt.h"
#include "torture/torture.h"
#include "torture/nbt/proto.h"
+#include "param/param.h"
#define CHECK_VALUE(tctx, v, correct) \
torture_assert_int_equal(tctx, v, correct, "Incorrect value")
@@ -113,6 +114,7 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
torture_comment(tctx, "query the name to make sure its there\n");
query.in.name = *name;
query.in.dest_addr = address;
+ query.in.dest_port = lp_nbt_port(tctx->lp_ctx);
query.in.broadcast = false;
query.in.wins_lookup = true;
query.in.timeout = 3;
diff --git a/source4/torture/nbt/winsbench.c b/source4/torture/nbt/winsbench.c
index 27edd57206..34d27ab410 100644
--- a/source4/torture/nbt/winsbench.c
+++ b/source4/torture/nbt/winsbench.c
@@ -27,6 +27,7 @@
#include "lib/socket/netif.h"
#include "torture/torture.h"
#include "torture/nbt/proto.h"
+#include "param/param.h"
struct wins_state {
int num_names;
@@ -184,6 +185,7 @@ static void generate_query(struct nbt_name_socket *nbtsock, struct wins_state *s
io.in.name = generate_name(tmp_ctx, idx);
io.in.dest_addr = state->wins_server;
+ io.in.dest_port = lp_nbt_port(global_loadparm);
io.in.broadcast = false;
io.in.wins_lookup = true;
io.in.timeout = 2;