Lines Matching refs:if_index
323 static int bind_to_iface(int sock, const struct sockaddr *addr, int if_index) in bind_to_iface() argument
328 ret = net_if_get_name(net_if_get_by_index(if_index), ifreq.ifr_name, in bind_to_iface()
331 LOG_DBG("Cannot get interface name for %d (%d)", if_index, ret); in bind_to_iface()
342 if_index, ret); in bind_to_iface()
409 ctx->servers[idx].if_index = 0; in dns_resolve_init_locked()
412 ctx->servers[idx].if_index = in dns_resolve_init_locked()
418 ctx->servers[idx].if_index = 0; in dns_resolve_init_locked()
503 if (ctx->servers[i].if_index > 0) { in dns_resolve_init_locked()
506 ctx->servers[i].if_index); in dns_resolve_init_locked()
513 iface = net_if_get_by_index(ctx->servers[i].if_index); in dns_resolve_init_locked()
517 ctx->servers[i].if_index); in dns_resolve_init_locked()