Lines Matching refs:ifname
1160 static int launch_script(const char *setup_script, const char *ifname, int fd);
1270 static int tap_open(char *ifname, int ifname_size)
1284 pstrcpy(ifname, ifname_size, dev);
1377 /* Set ifname to arp */
1383 syslog (LOG_ERR, "Can't set ifname to arp\n");
1412 static int tap_open(char *ifname, int ifname_size)
1420 pstrcpy(ifname, ifname_size, dev);
1425 static int tap_open(char *ifname, int ifname_size)
1431 static int tap_open(char *ifname, int ifname_size)
1443 if (ifname[0] != '\0')
1444 pstrcpy(ifr.ifr_name, IFNAMSIZ, ifname);
1453 pstrcpy(ifname, ifname_size, ifr.ifr_name);
1459 static int launch_script(const char *setup_script, const char *ifname, int fd)
1485 *parg++ = (char *)ifname;
1509 char ifname[128];
1512 pstrcpy(ifname, sizeof(ifname), ifname1);
1514 ifname[0] = '\0';
1515 TFR(fd = tap_open(ifname, sizeof(ifname)));
1522 if (launch_script(setup_script, ifname, fd))
1527 "ifname=%s,script=%s,downscript=%s",
1528 ifname, setup_script, down_script);
1531 snprintf(s->down_script_arg, sizeof(s->down_script_arg), "%s", ifname);
2319 "vlan", "name", "ifname", NULL
2321 char ifname[64];
2328 if (get_param_value(ifname, sizeof(ifname), "ifname", p) <= 0) {
2334 ret = tap_win32_init(vlan, device, name, ifname);
2339 char ifname[64], chkbuf[64];
2355 "vlan", "name", "ifname", "script", "downscript", NULL
2362 if (get_param_value(ifname, sizeof(ifname), "ifname", p) <= 0) {
2363 ifname[0] = '\0';
2371 ret = net_tap_init(vlan, device, name, ifname, setup_script, down_script);