mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r12413: do some testing with 0x1E names
metze
(This used to be commit b96eadb890
)
This commit is contained in:
parent
5b4acf8b10
commit
e161613cbd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user