Home | History | Annotate | Download | only in openssh

Lines Matching defs:tun

252 	int tun;
263 tun = a2tun(sp, NULL);
265 return (*remote == SSH_TUNID_ERR ? *remote : tun);
271 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr);
275 return (tun);
648 tun_open(int tun, int mode)
651 return (sys_tun_open(tun, mode));
658 if (tun <= SSH_TUNID_MAX) {
659 snprintf(name, sizeof(name), "/dev/tun%d", tun);
661 } else if (tun == SSH_TUNID_ANY) {
662 for (tun = 100; tun >= 0; tun--) {
663 snprintf(name, sizeof(name), "/dev/tun%d", tun);
668 debug("%s: invalid tunnel %u", __func__, tun);
680 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "tun%d", tun);