Lines Matching refs:ifindex
66 get_link_info(struct snl_state *ss, uint32_t ifindex, in get_link_info() argument
76 ifmsg->ifi_index = ifindex; in get_link_info()
94 has_l2(struct snl_state *ss, uint32_t ifindex) in has_l2() argument
98 if (!get_link_info(ss, ifindex, &link)) in has_l2()
203 fix_ifindex(struct snl_state *ss, uint32_t ifindex, const struct sockaddr_in6 *sa) in fix_ifindex() argument
205 if (ifindex == 0) in fix_ifindex()
206 ifindex = guess_ifindex(ss, get_myfib(), sa); in fix_ifindex()
207 return (ifindex); in fix_ifindex()
312 print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) in print_entries_nl() argument
337 ndmsg->ndm_ifindex = ifindex; in print_entries_nl()
403 delete_nl(uint32_t ifindex, char *host, bool warn) in delete_nl() argument
418 ifindex = fix_ifindex(&ss, ifindex, &dst); in delete_nl()
419 if (ifindex == 0) { in delete_nl()
430 ndmsg->ndm_ifindex = ifindex; in delete_nl()
455 char *ifname = if_indextoname(ifindex, ifix_buf); in delete_nl()
475 set_nl(uint32_t ifindex, struct sockaddr_in6 *dst, struct sockaddr_dl *sdl, char *host) in set_nl() argument
482 ifindex = fix_ifindex(&ss, ifindex, dst); in set_nl()
483 if (ifindex == 0) { in set_nl()
497 ndmsg->ndm_ifindex = ifindex; in set_nl()