Home | History | Annotate | Download | only in dist

Lines Matching refs:tun

538 	int tun;
549 tun = a2tun(sp, NULL);
551 return (*remote == SSH_TUNID_ERR ? *remote : tun);
557 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr);
561 return (tun);
1437 tun_open(int tun, int mode, char **ifname)
1442 const char *tunbase = "tun";
1451 if (tun <= SSH_TUNID_MAX) {
1452 snprintf(name, sizeof(name), "/dev/%s%d", tunbase, tun);
1454 } else if (tun == SSH_TUNID_ANY) {
1455 for (tun = 100; tun >= 0; tun--) {
1457 tunbase, tun);
1462 debug_f("invalid tunnel %u", tun);
1487 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", tunbase, tun);