s4-interfaces Rename interfaces code so not to conflict with source3/
[bbaumbach/samba-autobuild/.git] / source4 / torture / nbt / winsbench.c
index c77c63544c73c7010f296f5593c00c0721df5e13..07c7e952cba6bcc6ecae532db4b7387b25457b76 100644 (file)
@@ -246,8 +246,8 @@ static bool bench_wins(struct torture_context *tctx)
        state->registered = talloc_zero_array(state, bool, state->num_names);
        state->wins_server = address;
        state->wins_port = lpcfg_nbt_port(tctx->lp_ctx);
-       load_interfaces(tctx, lpcfg_interfaces(tctx->lp_ctx), &ifaces);
-       state->my_ip = talloc_strdup(tctx, iface_best_ip(ifaces, address));
+       load_interface_list(tctx, lpcfg_interfaces(tctx->lp_ctx), &ifaces);
+       state->my_ip = talloc_strdup(tctx, iface_list_best_ip(ifaces, address));
        state->ttl = timelimit;
 
        my_ip = socket_address_from_strings(nbtsock, nbtsock->sock->backend_name, 
@@ -292,8 +292,7 @@ static bool bench_wins(struct torture_context *tctx)
 */
 struct torture_suite *torture_bench_wins(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(mem_ctx, 
-                                                          "BENCH-WINS");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "bench-wins");
 
        torture_suite_add_simple_test(suite, "wins", bench_wins);