Lines Matching defs:if_index
245 int shut = 0, udpsock, if_index;
301 if (IMSG_DATA_SIZE(imsg) != sizeof(if_index))
304 memcpy(&if_index, imsg.data, sizeof(if_index));
305 set_udpsock(udpsock, if_index);
405 if_index = ifaces[i];
406 if_name = if_indextoname(if_index, ifnamebuf);
408 NULL ? if_name : "<unknown>", if_index);
409 update_iface(if_index);
411 IMSG_REQUEST_REBOOT, 0, 0, &if_index,
412 sizeof(if_index));
492 iface = get_iface_by_id(imsg_req_dhcp.if_index);
544 update_iface(uint32_t if_index)
555 if ((if_name = if_indextoname(if_index, ifnamebuf)) == NULL)
565 ifinfo.if_index = if_index;
591 iface = get_iface_by_id(if_index);
598 &if_index, sizeof(if_index));
660 uint32_t if_index;
664 if_index = ((struct if_msghdr *)rtm)->ifm_index;
665 update_iface(if_index);
669 if_index = ifan->ifan_index;
672 &if_index, sizeof(if_index));
673 remove_iface(if_index);
718 imsg_dhcp.if_index = iface->ifinfo.if_index;
896 if ((if_name = if_indextoname(iface->ifinfo.if_index, ifnamebuf))
923 dst.sin6_scope_id = iface->ifinfo.if_index;
931 get_iface_by_id(uint32_t if_index)
936 if (iface->ifinfo.if_index == if_index)
954 remove_iface(uint32_t if_index)
958 iface = get_iface_by_id(if_index);
972 set_udpsock(int udpsock, uint32_t if_index)
976 iface = get_iface_by_id(if_index);
1020 int *ret, if_index, count = 0, i = 0;
1034 if ((if_index = if_nametoindex(iface_conf->name)) == 0)
1040 ret[i++] = if_index;
1043 ret[i++] = if_index;
1047 if ((if_index = if_nametoindex(oiface_conf->name)) == 0)
1052 ret[i++] = if_index;