Lines Matching defs:iface
130 static int create_tap_fd(char *iface)
143 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1);
160 static int create_raw_fd(char *iface, int flags, int proto)
173 strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1);
200 char *iface;
206 iface = uml_vector_fetch_arg(ifspec, TOKEN_IFNAME);
207 if (iface == NULL) {
209 iface = dynamic_ifname;
226 strcpy(iface, template);
227 for (i = 0; i < strlen(iface); i++) {
228 if (iface[i] == 'X') {
229 iface[i] = padchar[rand() % strlen(padchar)];
233 fd = create_tap_fd(iface);
244 argv[1] = iface;
257 char *iface;
261 iface = uml_vector_fetch_arg(ifspec, TOKEN_IFNAME);
262 if (iface == NULL) {
279 result->tx_fd = create_tap_fd(iface);
287 result->rx_fd = create_raw_fd(iface, ETH_P_ALL, ETH_P_ALL);
296 argv[1] = iface;
440 char *iface;
444 iface = uml_vector_fetch_arg(ifspec, TOKEN_IFNAME);
445 if (iface == NULL)
448 rxfd = create_raw_fd(iface, ETH_P_ALL, ETH_P_ALL);
453 txfd = create_raw_fd(iface, 0, ETH_P_IP); /* Turn off RX on this fd */
467 argv[1] = iface;