Lines Matching refs:iface
35 struct iface {
37 struct iface *next;
38 char iface[IFNAMSIZ];
48 static struct iface *iface;
53 struct iface *n = SAFE_MALLOC(sizeof(*n));
54 struct iface **list = (struct iface**)data;
56 strncpy(n->iface, item, sizeof(n->iface));
57 n->iface[sizeof(n->iface)-1] = '\0';
105 tst_brk(TBROK, "missing iface (-d iface)");
122 iface_len = save_item((void **)&iface, d_opt, save_iface);
176 static void brk_on_route_error(const char *msg, int iface,
184 tst_res(TINFO, "type: %s, iface: %d, dst: %s, gw: %s",
186 iface, dst_str, gw ? gw_str : "null");
190 static void rtnl_route(int iface, struct addrinfo *dst, struct addrinfo *gw,
230 mnl_attr_put_u32(nlh, RTA_OIF, iface);
244 brk_on_route_error("mnl_socket_open", iface, dst->ai_addr, gw ?
248 brk_on_route_error("mnl_socket_bind", iface, dst->ai_addr, gw ?
254 brk_on_route_error("mnl_socket_sendto", iface, dst->ai_addr, gw
259 brk_on_route_error("mnl_socket_recvfrom", iface, dst->ai_addr,
264 brk_on_route_error("mnl_cb_run", iface, dst->ai_addr, gw ?
285 struct iface *p_iface = iface;
297 p_iface = p_iface->next ?: iface;