/dragonfly/lib/libssh/openbsd-compat/ |
H A D | port-net.c | 144 sys_tun_open(int tun, int mode, char **ifname) in sys_tun_open() argument 169 if (tun != SSH_TUNID_ANY) { in sys_tun_open() 170 if (tun > SSH_TUNID_MAX) { in sys_tun_open() 172 tun, strerror(errno)); in sys_tun_open() 184 if (tun == SSH_TUNID_ANY) in sys_tun_open() 209 sys_tun_open(int tun, int mode, char **ifname) in sys_tun_open() argument 232 if (tun <= SSH_TUNID_MAX) { in sys_tun_open() 235 } else if (tun == SSH_TUNID_ANY) { in sys_tun_open() 236 for (tun = 100; tun >= 0; tun--) { in sys_tun_open() 238 tunbase, tun); in sys_tun_open() [all …]
|
/dragonfly/sbin/nos-tun/ |
H A D | nos-tun.c | 84 int tun; /* tunnel descriptor */ variable 114 tun = open(tun_dev, O_RDWR); in tun_open() 115 if (tun < 0) { in tun_open() 126 if (ioctl(tun, TUNGIFNAME, &ifrq) < 0) { in tun_open() 189 close(tun); in tun_open() 235 close(tun); in Finish() 326 FD_SET(tun,&rfds); FD_SET(net,&rfds); in main() 349 write(tun,buf+ipoff,len-ipoff); in main() 353 if(FD_ISSET(tun,&rfds)) { in main() 355 len = read(tun, buf, sizeof(buf)); in main()
|
H A D | Makefile | 4 PROG= nos-tun 5 MAN= nos-tun.8
|
/dragonfly/sys/bus/u4b/input/ |
H A D | wsp.c | 844 struct wsp_tuning tun = wsp_tuning; in wsp_intr_callback() local 856 wsp_runing_rangecheck(&tun); in wsp_intr_callback() 1001 if ((sc->dt_sum / tun.scr_hor_threshold) != 0 && in wsp_intr_callback() 1092 rdz = (dy + sc->rdz) % tun.scale_factor; in wsp_intr_callback() 1093 sc->dz_sum -= (dy + sc->rdz) / tun.scale_factor; in wsp_intr_callback() 1096 if ((sc->dz_sum / tun.z_factor) != 0) in wsp_intr_callback() 1099 rdx = (dx + sc->rdx) % tun.scale_factor; in wsp_intr_callback() 1100 dx = (dx + sc->rdx) / tun.scale_factor; in wsp_intr_callback() 1103 rdy = (dy + sc->rdy) % tun.scale_factor; in wsp_intr_callback() 1104 dy = (dy + sc->rdy) / tun.scale_factor; in wsp_intr_callback() [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | ip.c | 884 struct tun_data tun; in ip_Input() local 889 if (nb > sizeof tun.data) { in ip_Input() 891 l->name, nb, (int)(sizeof tun.data)); in ip_Input() 895 mbuf_Read(bp, tun.data, nb); in ip_Input() 898 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input() 903 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input() 910 tun.header.family = htonl(af); in ip_Input() 911 nb += sizeof tun - sizeof tun.data; in ip_Input() 912 data = (char *)&tun; in ip_Input() 914 data = tun.data; in ip_Input()
|
H A D | bundle.c | 552 struct tun_data tun; in bundle_DescriptorRead() local 558 data = (u_char *)&tun; in bundle_DescriptorRead() 559 sz = sizeof tun; in bundle_DescriptorRead() 561 data = tun.data; in bundle_DescriptorRead() 562 sz = sizeof tun.data; in bundle_DescriptorRead() 574 n -= sz - sizeof tun.data; in bundle_DescriptorRead() 580 af = ntohl(tun.header.family); in bundle_DescriptorRead() 591 if (af == AF_INET && ((struct ip *)tun.data)->ip_dst.s_addr == in bundle_DescriptorRead() 598 n += sz - sizeof tun.data; in bundle_DescriptorRead() 637 tun.header.timeout = secs; in bundle_DescriptorRead() [all …]
|
H A D | Makefile | 10 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
|
H A D | README.changes | 96 o Ppp can use tun devices > tun255.
|
/dragonfly/contrib/wpa_supplicant/src/radius/ |
H A D | radius.c | 1477 tun = &tunnel[0]; in radius_msg_get_vlanid() 1479 tun = &tunnel[data[0]]; in radius_msg_get_vlanid() 1485 tun->tag_used++; in radius_msg_get_vlanid() 1486 tun->type = WPA_GET_BE24(data + 1); in radius_msg_get_vlanid() 1491 tun->tag_used++; in radius_msg_get_vlanid() 1506 tun->tag_used++; in radius_msg_get_vlanid() 1507 tun->vlanid = vlan_id; in radius_msg_get_vlanid() 1526 tun = &tunnel[i]; in radius_msg_get_vlanid() 1527 if (tun->tag_used && in radius_msg_get_vlanid() 1530 tun->vlanid > 0) { in radius_msg_get_vlanid() [all …]
|
/dragonfly/sys/net/tun/ |
H A D | if_tun.c | 124 static DEVFS_DEFINE_CLONE_BITMAP(tun); 135 SYSCTL_NODE(_net_link, OID_AUTO, tun, CTLFLAG_RW, 0, 155 dev = make_autoclone_dev(&tun_ops, &DEVFS_CLONE_BITMAP(tun), in tunmodevent() 173 destroy_autoclone_dev(dev, &DEVFS_CLONE_BITMAP(tun)); in tunmodevent() 189 unit = devfs_clone_bitmap_get(&DEVFS_CLONE_BITMAP(tun), 0); in tunclone() 267 devfs_clone_bitmap_put(&DEVFS_CLONE_BITMAP(tun), unit); in tundestroy() 389 if (!devfs_clone_bitmap_chk(&DEVFS_CLONE_BITMAP(tun), unit)) { in tun_clone_create() 390 devfs_clone_bitmap_set(&DEVFS_CLONE_BITMAP(tun), unit); in tun_clone_create()
|
/dragonfly/crypto/openssh/ |
H A D | misc.c | 508 int tun; in a2tun() local 519 tun = a2tun(sp, NULL); in a2tun() 527 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr); in a2tun() 531 return (tun); in a2tun() 1389 tun_open(int tun, int mode, char **ifname) in tun_open() argument 1392 return (sys_tun_open(tun, mode, ifname)); in tun_open() 1406 if (tun <= SSH_TUNID_MAX) { in tun_open() 1409 } else if (tun == SSH_TUNID_ANY) { in tun_open() 1410 for (tun = 100; tun >= 0; tun--) { in tun_open() 1412 tunbase, tun); in tun_open() [all …]
|
H A D | serverloop.c | 523 u_int mode, tun; in server_request_tun() local 543 if ((r = sshpkt_get_u32(ssh, &tun)) != 0) in server_request_tun() 545 if (tun > INT_MAX) { in server_request_tun() 550 if (tun != SSH_TUNID_ANY && in server_request_tun() 551 auth_opts->force_tun_device != (int)tun) in server_request_tun() 553 tun = auth_opts->force_tun_device; in server_request_tun() 555 sock = tun_open(tun, mode, &ifname); in server_request_tun()
|
H A D | README.tun | 4 OpenSSH contains support for VPN tunneling using the tun(4) network 40 OpenBSD also supports layer 2 tunneling over the tun device by adding 132 $OpenBSD: README.tun,v 1.4 2006/03/28 00:12:31 deraadt Exp $
|
H A D | PROTOCOL | 176 2.3. connection: Tunnel forward extension "tun@openssh.com" 178 OpenSSH supports layer 2 and layer 3 tunnelling via the "tun@openssh.com" 181 interfaces like the BSD tun(4) device. Tunnel forwarding channels are 185 string "tun@openssh.com"
|
/dragonfly/etc/rc.d/ |
H A D | rtadvd | 40 lo0|gif[0-9]*|stf[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
|
/dragonfly/sys/net/ |
H A D | Makefile | 12 tap tun \
|
/dragonfly/etc/ppp/ |
H A D | ppp.conf | 13 set log Phase Chat LCP IPCP CCP tun command
|
/dragonfly/sbin/ |
H A D | Makefile | 78 nos-tun \
|
/dragonfly/share/man/man4/ |
H A D | Makefile | 332 tun.4 \ 546 MLINKS+=tun.4 if_tun.4
|
/dragonfly/etc/mtree/ |
H A D | BSD.include.dist | 283 tun
|
/dragonfly/sys/config/ |
H A D | VKERNEL64 | 67 pseudo-device tun # Packet tunnel.
|
/dragonfly/share/examples/ppp/ |
H A D | ppp.conf.span-isp | 51 # o Both the Gateway and the Receiver machines must have several tun 86 # The Receiver machine should have N tun interfaces (where N is the maximum
|
/dragonfly/sbin/natd/ |
H A D | HISTORY | 40 address from interface, which might be useful to tun devices.
|
/dragonfly/contrib/nvi2/catalog/ |
H A D | tr_TR.UTF-8.base | 39 040 "Ekran sütun sayısı çok küçük, şundan daha az: %d" 40 041 "Ekran sütun sayısı çok büyük, şundan daha çok: %d"
|
/dragonfly/include/ |
H A D | Makefile | 79 net/tap net/tun \
|