Home | History | Annotate | Download | only in openssh

Lines Matching refs:tun

250 	int tun;
261 tun = a2tun(sp, NULL);
263 return (*remote == SSH_TUNID_ERR ? *remote : tun);
269 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr);
273 return (tun);
647 tun_open(int tun, int mode)
650 return (sys_tun_open(tun, mode));
657 if (tun <= SSH_TUNID_MAX) {
658 snprintf(name, sizeof(name), "/dev/tun%d", tun);
660 } else if (tun == SSH_TUNID_ANY) {
661 for (tun = 100; tun >= 0; tun--) {
662 snprintf(name, sizeof(name), "/dev/tun%d", tun);
667 debug("%s: invalid tunnel %u", __func__, tun);
679 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "tun%d", tun);