mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s4:torture/nbt/wins - Add more casts
This commit is contained in:
parent
58a5e764a9
commit
262d26d05a
@ -117,8 +117,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
|
||||
torture_comment(tctx, "register the name with a wrong address (makes the next request slow!)\n");
|
||||
io.in.name = *name;
|
||||
io.in.wins_port = lp_nbt_port(tctx->lp_ctx);
|
||||
io.in.wins_servers = str_list_make_single(tctx, address);
|
||||
io.in.addresses = str_list_make_single(tctx, "127.64.64.1");
|
||||
io.in.wins_servers = const_str_list(
|
||||
str_list_make_single(tctx, address));
|
||||
io.in.addresses = const_str_list(
|
||||
str_list_make_single(tctx, "127.64.64.1"));
|
||||
io.in.nb_flags = nb_flags;
|
||||
io.in.ttl = 300000;
|
||||
|
||||
@ -311,8 +313,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
|
||||
torture_comment(tctx, "register the name with a wrong address (makes the next request slow!)\n");
|
||||
io.in.name = *name;
|
||||
io.in.wins_port = lp_nbt_port(tctx->lp_ctx);
|
||||
io.in.wins_servers = str_list_make_single(tctx, address);
|
||||
io.in.addresses = str_list_make_single(tctx, "127.64.64.1");
|
||||
io.in.wins_servers = const_str_list(
|
||||
str_list_make_single(tctx, address));
|
||||
io.in.addresses = const_str_list(
|
||||
str_list_make_single(tctx, "127.64.64.1"));
|
||||
io.in.nb_flags = nb_flags;
|
||||
io.in.ttl = 300000;
|
||||
|
||||
@ -333,8 +337,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
|
||||
torture_comment(tctx, "refresh the name with the correct address\n");
|
||||
refresh.in.name = *name;
|
||||
refresh.in.wins_port = lp_nbt_port(tctx->lp_ctx);
|
||||
refresh.in.wins_servers = str_list_make_single(tctx, address);
|
||||
refresh.in.addresses = str_list_make_single(tctx, myaddress);
|
||||
refresh.in.wins_servers = const_str_list(
|
||||
str_list_make_single(tctx, address));
|
||||
refresh.in.addresses = const_str_list(
|
||||
str_list_make_single(tctx, myaddress));
|
||||
refresh.in.nb_flags = nb_flags;
|
||||
refresh.in.ttl = 12345;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user