summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-21 23:05:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:35 -0500
commite161613cbd1bab8d33df3b9d36d0d015fbb91e83 (patch)
treeadc6a86aa8c07f3acbca35a62f0d6887109b5417 /source4/torture
parent5b4acf8b10cf2817fa6beb54532e07481755f0eb (diff)
downloadsamba-e161613cbd1bab8d33df3b9d36d0d015fbb91e83.tar.gz
samba-e161613cbd1bab8d33df3b9d36d0d015fbb91e83.tar.bz2
samba-e161613cbd1bab8d33df3b9d36d0d015fbb91e83.zip
r12413: do some testing with 0x1E names
metze (This used to be commit b96eadb890a29cfbcff43ede390ef842e16827ad)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/nbt/wins.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c
index b762c83609..8eb8d48f9f 100644
--- a/source4/torture/nbt/wins.c
+++ b/source4/torture/nbt/wins.c
@@ -111,8 +111,9 @@ static BOOL nbt_test_wins_name(TALLOC_CTX *mem_ctx, const char *address,
CHECK_STRING(io.out.wins_server, address);
CHECK_VALUE(io.out.rcode, 0);
- if (name->type != NBT_NAME_MASTER &&
+ if (name->type != NBT_NAME_MASTER &&
name->type != NBT_NAME_LOGON &&
+ name->type != NBT_NAME_BROWSER &&
(nb_flags & NBT_NM_GROUP)) {
printf("Try to register as non-group\n");
io.in.nb_flags &= ~NBT_NM_GROUP;
@@ -291,7 +292,7 @@ static BOOL nbt_test_wins(TALLOC_CTX *mem_ctx, const char *address)
{
struct nbt_name name;
BOOL ret = True;
- uint32_t r = (unsigned)(random() % (100000));
+ uint32_t r = (uint32_t)(random() % (100000));
name.name = talloc_asprintf(mem_ctx, "_TORTURE-%5u", r);
@@ -307,6 +308,9 @@ static BOOL nbt_test_wins(TALLOC_CTX *mem_ctx, const char *address)
name.type = NBT_NAME_LOGON;
ret &= nbt_test_wins_name(mem_ctx, address, &name, NBT_NODE_H | NBT_NM_GROUP);
+ name.type = NBT_NAME_BROWSER;
+ ret &= nbt_test_wins_name(mem_ctx, address, &name, NBT_NODE_H | NBT_NM_GROUP);
+
name.scope = "example";
name.type = 0x72;
ret &= nbt_test_wins_name(mem_ctx, address, &name, NBT_NODE_H);