Lines Matching defs:ifindex
155 __ifindex_to_primary_ip(const uint32_t ifindex, struct in_addr *pina)
163 assert(ifindex != 0);
166 if (if_indextoname(ifindex, ifname) == NULL)
282 * Return the ifindex of ifname, or 0 if any parse element failed.
290 uint32_t ifindex;
299 ifindex = if_nametoindex(str2);
300 if (ifindex == 0)
331 ifindex = 0;
335 ifindex = 0;
342 return (ifindex);
387 uint32_t fmode, ifindex;
422 ifindex = parse_cmd_args(&su, &su2, str1, str2, str3);
423 if (ifindex == 0) {
432 error = __ifindex_to_primary_ip(ifindex, &ina);
481 mr.gr.gsr_interface = ifindex;
494 mr.mr6.ipv6mr_interface = ifindex;
539 ifindex = parse_cmd_args(&su, NULL, str1, str2, NULL);
540 if (ifindex == 0 || n < 0 || n > MAX_ADDRS) {
586 if (setsourcefilter(af2sock(af, s, s6), ifindex,
602 ifindex = parse_cmd_args(&su, &su2, str1, str2, str3);
603 if (ifindex == 0 || su2.sa.sa_family == AF_UNSPEC) {
615 if (getsourcefilter(af2sock(af, s, s6), ifindex,
624 error = __ifindex_to_primary_ip(ifindex, &ina);
668 mr.gr.gsr_interface = ifindex;
712 ifindex = parse_cmd_args(&su, NULL, str1, str2, NULL);
713 if (ifindex == 0 || (n < 0 || n > MAX_ADDRS)) {
724 if (getsourcefilter(af2sock(af, s, s6), ifindex, &su.sa,