Lines Matching defs:iface
65 iface[IFNAMSIZ+1], laddr[64], bcast[64];
811 if (TT.is_addr && addrinfo.label && fnmatch(addrinfo.label, link->iface, 0))
819 char iface[IF_NAMESIZE];
821 if (!if_indextoname(link->parent, iface)) perror_exit(NULL);
822 sprintf(toybuf,"%s@%s", link->iface, iface);
827 ((link->parent == -1) ? link->iface : toybuf));
829 link->iface_idx, ((link->parent == -1) ? link->iface : toybuf), flags,
855 struct ifinfomsg *iface = NLMSG_DATA(h);
856 struct rtattr *attr = IFLA_RTA(iface);
857 int len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*iface));
882 char *lname = get_flag_string(hwtypes, iface->ifi_type, 0);
885 link->iface_type = iface->ifi_type;
889 link->iface_idx = iface->ifi_index;
890 link->flags = iface->ifi_flags;
896 snprintf(link->iface, IFNAMSIZ, "%s",(char *) RTA_DATA(attr));
899 if ( iface->ifi_type== ARPHRD_TUNNEL ||
900 iface->ifi_type == ARPHRD_SIT ||
901 iface->ifi_type == ARPHRD_IPGRE)
906 if (iface->ifi_type== ARPHRD_TUNNEL ||
907 iface->ifi_type == ARPHRD_SIT ||
908 iface->ifi_type == ARPHRD_IPGRE)
1355 char *temp = &tmp->iface[0];
1393 if (!col && (fnmatch(addrinfo.label, &link->iface[0], 0)))
2501 char iface[IF_NAMESIZE];
2512 if (!ptr || (*ptr++ = 0, sscanf(toybuf, "%s", iface) != 1))
2514 if (*ptnl->name && strcmp(ptnl->name, iface)) continue;
2515 if ((ret = tnl_ioctl(iface, SIOCGIFHWADDR, &iptnl)) < 0) {
2516 error_msg("failed to get type of '%s'", iface);
2523 if (tnl_ioctl(iface, SIOCGETTUNNEL, &iptnl) < 0) continue;