Lines Matching refs:ifindex
32 r = CMP(a->ifindex, b->ifindex); in address_compare()
63 int ifindex, in local_addresses() argument
82 r = sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, ifindex, af); in local_addresses()
113 if (ifindex > 0 && ifi != ifindex) in local_addresses()
137 if (ifindex == 0 && IN_SET(a->scope, RT_SCOPE_HOST, RT_SCOPE_NOWHERE)) in local_addresses()
164 a->ifindex = ifi; in local_addresses()
183 int ifindex, in add_local_gateway() argument
198 .ifindex = ifindex, in add_local_gateway()
209 int ifindex, in local_gateways() argument
303 if (ifindex > 0 && (int) ifi != ifindex) in local_gateways()
345 if (ifindex > 0 && mr->ifindex != ifindex) in local_gateways()
366 int ifindex, in local_outbounds() argument
382 n_gateways = local_gateways(context, ifindex, af, &gateways); in local_outbounds()
419 .sin6_scope_id = gateways[i].ifindex, in local_outbounds()
433 r = socket_set_unicast_if(fd, gateways[i].family, gateways[i].ifindex); in local_outbounds()
435 … log_debug_errno(r, "Failed to set unicast interface index %i, ignoring: %m", gateways[i].ifindex); in local_outbounds()
442 r = socket_bind_to_ifindex(fd, gateways[i].ifindex); in local_outbounds()
444 … log_debug_errno(r, "Failed to bind socket to interface %i, ignoring: %m", gateways[i].ifindex); in local_outbounds()
475 .ifindex = gateways[i].ifindex, in local_outbounds()
490 .ifindex = gateways[i].ifindex, in local_outbounds()