Lines Matching refs:ifindex
154 __ifindex_to_primary_ip(const uint32_t ifindex, struct in_addr *pina) in __ifindex_to_primary_ip() argument
162 assert(ifindex != 0); in __ifindex_to_primary_ip()
165 if (if_indextoname(ifindex, ifname) == NULL) in __ifindex_to_primary_ip()
289 uint32_t ifindex; in parse_cmd_args() local
298 ifindex = if_nametoindex(str2); in parse_cmd_args()
299 if (ifindex == 0) in parse_cmd_args()
330 ifindex = 0; in parse_cmd_args()
334 ifindex = 0; in parse_cmd_args()
341 return (ifindex); in parse_cmd_args()
386 uint32_t fmode, ifindex; in process_cmd() local
423 ifindex = parse_cmd_args(&su, &su2, str1, str2, str3); in process_cmd()
424 if (ifindex == 0) { in process_cmd()
433 error = __ifindex_to_primary_ip(ifindex, &ina); in process_cmd()
482 mr.gr.gsr_interface = ifindex; in process_cmd()
495 mr.mr6.ipv6mr_interface = ifindex; in process_cmd()
540 ifindex = parse_cmd_args(&su, NULL, str1, str2, NULL); in process_cmd()
541 if (ifindex == 0 || n < 0 || n > MAX_ADDRS) { in process_cmd()
587 if (setsourcefilter(af2sock(af, s, s6), ifindex, in process_cmd()
603 ifindex = parse_cmd_args(&su, &su2, str1, str2, str3); in process_cmd()
604 if (ifindex == 0 || su2.sa.sa_family == AF_UNSPEC) { in process_cmd()
615 if (getsourcefilter(af2sock(af, s, s6), ifindex, in process_cmd()
624 error = __ifindex_to_primary_ip(ifindex, &ina); in process_cmd()
668 mr.gr.gsr_interface = ifindex; in process_cmd()
712 ifindex = parse_cmd_args(&su, NULL, str1, str2, NULL); in process_cmd()
713 if (ifindex == 0 || (n < 0 || n > MAX_ADDRS)) { in process_cmd()
724 if (getsourcefilter(af2sock(af, s, s6), ifindex, &su.sa, in process_cmd()