Home
last modified time | relevance | path

Searched refs:tun (Results 1 – 25 of 29) sorted by relevance

12

/mirbsd/src/usr.bin/ssh/
Dmisc.c233 int tun; in a2tun() local
244 tun = a2tun(sp, NULL); in a2tun()
246 return (*remote == SSH_TUNID_ERR ? *remote : tun); in a2tun()
252 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr); in a2tun()
256 return (tun); in a2tun()
630 tun_open(int tun, int mode) in tun_open() argument
637 if (tun <= SSH_TUNID_MAX) { in tun_open()
638 snprintf(name, sizeof(name), "/dev/tun%d", tun); in tun_open()
640 } else if (tun == SSH_TUNID_ANY) { in tun_open()
641 for (tun = 100; tun >= 0; tun--) { in tun_open()
[all …]
Dauth-options.c308 char *tun = NULL; in auth_parse_options() local
310 tun = xmalloc(strlen(opts) + 1); in auth_parse_options()
315 tun[i++] = *opts++; in auth_parse_options()
322 xfree(tun); in auth_parse_options()
326 tun[i] = '\0'; in auth_parse_options()
327 forced_tun_device = a2tun(tun, NULL); in auth_parse_options()
328 xfree(tun); in auth_parse_options()
Dserverloop.c943 int mode, tun; in server_request_tun() local
961 tun = packet_get_int(); in server_request_tun()
963 if (tun != SSH_TUNID_ANY && forced_tun_device != tun) in server_request_tun()
965 tun = forced_tun_device; in server_request_tun()
967 sock = tun_open(tun, mode); in server_request_tun()
DPROTOCOL101 5. connection: Tunnel forward extension "tun@openssh.com"
103 OpenSSH supports layer 2 and layer 3 tunnelling via the "tun@openssh.com"
106 interfaces like the BSD tun(4) device. Tunnel forwarding channels are
110 string "tun@openssh.com"
/mirbsd/src/usr.sbin/ppp/ppp/
Dip.c902 struct tun_data tun; in ip_Input() local
907 if (nb > sizeof tun.data) { in ip_Input()
909 l->name, nb, (int)(sizeof tun.data)); in ip_Input()
913 mbuf_Read(bp, tun.data, nb); in ip_Input()
916 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input()
921 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input()
928 tun.header.family = htonl(af); in ip_Input()
929 nb += sizeof tun - sizeof tun.data; in ip_Input()
930 data = (char *)&tun; in ip_Input()
932 data = tun.data; in ip_Input()
Dbundle.c554 struct tun_data tun; in bundle_DescriptorRead() local
560 data = (u_char *)&tun; in bundle_DescriptorRead()
561 sz = sizeof tun; in bundle_DescriptorRead()
563 data = tun.data; in bundle_DescriptorRead()
564 sz = sizeof tun.data; in bundle_DescriptorRead()
576 n -= sz - sizeof tun.data; in bundle_DescriptorRead()
582 af = ntohl(tun.header.family); in bundle_DescriptorRead()
593 if (af == AF_INET && ((struct ip *)tun.data)->ip_dst.s_addr == in bundle_DescriptorRead()
597 pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.in, in bundle_DescriptorRead()
600 n += sz - sizeof tun.data; in bundle_DescriptorRead()
[all …]
DMakefile13 timer.c tty.c tun.c udp.c vjcomp.c i4b.c atm.c
DREADME.changes95 o Ppp can use tun devices > tun255.
Dppp.8.m457 .Xr tun 4 .
87 .Pa /dev/tun Ns Ar N .
103 opens the tun interface, configures it, then goes into the background.
104 The link isn't brought up until outgoing data is detected on the tun
418 .Dl pseudo-device tun
427 .Xr tun 4
436 represents the number of the tun device, starting at zero.
438 This will create tun devices 0 through
1524 set log Phase Chat Connect hdlc LCP IPCP IPV6CP CCP tun
2353 .Xr tun 4
[all …]
/mirbsd/src/etc/etc.sparc/
DMAKEDEV.md106 _DEV(tun, 111)
131 target(all, tun, 0, 1, 2, 3)dnl
DMAKEDEV248 tun*)
249 M tun$U c 111 $U 600
/mirbsd/src/etc/etc.i386/
DMAKEDEV.md102 _DEV(tun, 40)
142 target(all, tun, 0, 1, 2, 3)dnl
DMAKEDEV335 tun*)
336 M tun$U c 40 $U 600
/mirbsd/src/etc/
DMAKEDEV.common480 _mkdev(tun, {-tun*-}, {-M tun$U c major_tun_c $U 600-}, 600)dnl
485 __devitem(tun, tun*, Network tunnel driver)dnl
/mirbsd/src/sys/arch/sparc/sparc/
Dconf.c240 cdev_bpftun_init(NTUN,tun), /* 111: network tunnel */
/mirbsd/src/sys/arch/i386/i386/
Dconf.c297 cdev_bpftun_init(NTUN,tun), /* 40: network tunnel */
/mirbsd/src/etc/ppp/
Dppp.conf.sample30 set log Phase Chat LCP IPCP CCP tun command
523 set log tun phase
/mirbsd/src/sys/sys/
Dconf.h586 cdev_decl(tun);
/mirbsd/src/sys/conf/
Dfiles372 pseudo-device tun: ifnet
668 file net/if_tun.c tun needs-count
/mirbsd/src/sys/arch/sparc/conf/
DFLOPPY106 #pseudo-device tun # network tunneling over tty
DGENERIC114 pseudo-device tun # network tunneling over tty
DRAMDISK106 #pseudo-device tun # network tunneling over tty
/mirbsd/src/sys/arch/i386/conf/
DRAMDISK106 #pseudo-device tun # network tunneling over tty
DGENERIC122 pseudo-device tun # network tunneling over tty
/mirbsd/src/distrib/lists/base/base/
Dmi2072 ./usr/share/man/cat4/tun.0

12