| /src/tests/sys/net/ |
| H A D | if_tun_test.sh | 15 tun=$(jexec one ifconfig tun create) 16 jexec one ifconfig ${tun} name foo 36 tun_duke=$(ifconfig tun create) 37 tun_bass=$(ifconfig tun create) 45 jexec duke nc -u -l --tun /dev/${tun_duke} 10.0.0.1 2600 & 46 jexec bass nc -u --tun /dev/${tun_bass} 10.0.0.1 2600 & 70 tun=$(jexec one ifconfig tun create) 71 atf_check -s exit:0 -o not-empty jexec one ifconfig ${tun} 72 jexec one $(atf_get_srcdir)/transient_tuntap /dev/${tun} 73 atf_check -s not-exit:0 -e not-empty jexec one ifconfig ${tun}
|
| /src/crypto/openssh/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() 175 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun); 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() 233 snprintf(name, sizeof(name), "/dev/%s%d", tunbase, tun); in sys_tun_open() 235 } else if (tun == SSH_TUNID_ANY) { in sys_tun_open() [all …]
|
| /src/sbin/nos-tun/ |
| H A D | nos-tun.c | 85 int tun; /* tunnel descriptor */ variable 115 tun = open(dev_name, O_RDWR); in tun_open() 116 if (tun < 0) { in tun_open() 187 close(tun); in tun_open() 230 close(tun); in Finish() 340 if (tun > net) in main() 341 lastfd = tun; in main() 348 FD_SET(tun,&rfds); FD_SET(net,&rfds); in main() 371 write(tun,buf+ipoff,len-ipoff); in main() 375 if(FD_ISSET(tun,&rfds)) { in main() [all …]
|
| H A D | Makefile | 1 PROG= nos-tun 2 MAN= nos-tun.8
|
| /src/sys/dev/usb/input/ |
| H A D | wsp.c | 966 struct wsp_tuning tun = wsp_tuning; in wsp_intr_callback() local 981 wsp_running_rangecheck(&tun); in wsp_intr_callback() 1089 if (sc->distance < tun.max_double_tap_distance && abs(sc->dx_sum) < 5 && in wsp_intr_callback() 1112 if (sc->index[0]->touch_major > tun.pressure_tap_threshold && in wsp_intr_callback() 1113 sc->index[0]->tool_major <= tun.max_finger_diameter) in wsp_intr_callback() 1117 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 && in wsp_intr_callback() 1118 sc->index[1]->touch_major > tun.pressure_tap_threshold-30) in wsp_intr_callback() 1122 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 1123 sc->index[1]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 1124 sc->index[2]->touch_major > tun.pressure_tap_threshold-40) in wsp_intr_callback() [all …]
|
| /src/sbin/ping/tests/ |
| H A D | injection.py | 35 tun = TunTapInterface(iface) variable 38 subprocess.run(["ifconfig", tun.iface, "up"]) 39 subprocess.run(["ifconfig", tun.iface, SRC_ADDR, DST_ADDR]) 46 echo_req = tun.recv() 80 tun.send(echo_reply)
|
| H A D | test_ping.py | 211 tun = sc.TunTapInterface(iface) 212 subprocess.run(["ifconfig", tun.iface, "up"], check=True) 213 subprocess.run(["ifconfig", tun.iface, src, dst], check=True) 246 echo = tun.recv() 261 tun.send(pkt) 263 tun.send(pkt)
|
| H A D | ping_test.sh | 219 ifconfig `cat tun.txt` destroy 235 ifconfig `cat tun.txt` destroy 253 ifconfig `cat tun.txt` destroy
|
| /src/usr.sbin/ppp/ |
| H A D | ip.c | 912 struct tun_data tun; in ip_Input() local 917 if (nb > sizeof tun.data) { in ip_Input() 919 l->name, nb, (int)(sizeof tun.data)); in ip_Input() 923 mbuf_Read(bp, tun.data, nb); in ip_Input() 926 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input() 931 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input() 938 tun.header.family = htonl(af); in ip_Input() 939 nb += sizeof tun - sizeof tun.data; in ip_Input() 940 data = (char *)&tun; in ip_Input() 942 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() 595 pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.in, in bundle_DescriptorRead() 598 n += sz - sizeof tun.data; in bundle_DescriptorRead() [all …]
|
| H A D | ppp.conf | 11 set log Phase Chat LCP IPCP CCP tun command
|
| H A D | Makefile | 11 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
|
| /src/contrib/wpa/src/radius/ |
| H A D | radius.c | 1634 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; in radius_msg_get_vlanid() local 1656 tun = &tunnel[0]; in radius_msg_get_vlanid() 1658 tun = &tunnel[data[0]]; in radius_msg_get_vlanid() 1664 tun->tag_used++; in radius_msg_get_vlanid() 1665 tun->type = WPA_GET_BE24(data + 1); in radius_msg_get_vlanid() 1670 tun->tag_used++; in radius_msg_get_vlanid() 1671 tun->medium_type = WPA_GET_BE24(data + 1); in radius_msg_get_vlanid() 1685 tun->tag_used++; in radius_msg_get_vlanid() 1686 tun->vlanid = vlan_id; in radius_msg_get_vlanid() 1705 tun = &tunnel[i]; in radius_msg_get_vlanid() [all …]
|
| /src/sys/contrib/device-tree/Bindings/mmc/ |
| H A D | marvell,xenon-sdhci.txt | 71 - marvell,xenon-phy-nr-success-tun: 77 - marvell,xenon-phy-tun-step-divider: 88 - marvell,xenon-tun-count: 116 marvell,xenon-tun-count = <11>; 135 marvell,xenon-tun-count = <9>;
|
| /src/crypto/openssh/ |
| H A D | serverloop.c | 487 u_int mode, tun; in server_request_tun() local 507 if ((r = sshpkt_get_u32(ssh, &tun)) != 0) in server_request_tun() 509 if (tun > INT_MAX) { in server_request_tun() 514 if (tun != SSH_TUNID_ANY && in server_request_tun() 515 auth_opts->force_tun_device != (int)tun) in server_request_tun() 517 tun = auth_opts->force_tun_device; in server_request_tun() 519 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 | misc.c | 555 int tun; in a2tun() local 566 tun = a2tun(sp, NULL); in a2tun() 568 return (*remote == SSH_TUNID_ERR ? *remote : tun); in a2tun() 574 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr); in a2tun() 578 return (tun); in a2tun() 1453 tun_open(int tun, int mode, char **ifname) in tun_open() argument 1456 return (sys_tun_open(tun, mode, ifname)); in tun_open() 1470 if (tun <= SSH_TUNID_MAX) { in tun_open() 1471 snprintf(name, sizeof(name), "/dev/%s%d", tunbase, tun); in tun_open() 1473 } else if (tun == SSH_TUNID_ANY) { in tun_open() [all …]
|
| /src/sys/dev/mlx4/mlx4_ib/ |
| H A D | mlx4_ib_cq.c | 583 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data() 584 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data() 585 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data() 590 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 591 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 592 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 595 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 596 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
| H A D | mlx4_ib_mad.c | 505 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1934 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1935 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1936 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2088 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2094 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2122 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2124 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2141 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2181 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all …]
|
| H A D | mlx4_ib.h | 274 struct mlx4_rcv_tunnel_hdr tun; member 459 struct mlx4_ib_demux_pv_ctx **tun; member
|
| /src/crypto/openssh/contrib/cygwin/ |
| H A D | Makefile | 52 -$(INSTALL) -m 644 $(srcdir)/README.tun $(DESTDIR)$(sshdocdir)/README.tun
|
| /src/sbin/ |
| H A D | Makefile | 50 nos-tun \
|
| /src/share/examples/ppp/ |
| H A D | ppp.conf.span-isp | 49 # o Both the Gateway and the Receiver machines must have several tun 84 # The Receiver machine should have N tun interfaces (where N is the maximum
|
| /src/sys/contrib/device-tree/src/arm64/marvell/ |
| H A D | armada-3720-espressobin.dtsi | 82 marvell,xenon-tun-count = <9>;
|
| /src/rescue/rescue/ |
| H A D | Makefile | 99 newfs_msdos nos-tun reboot \
|