| /freebsd-13-stable/crypto/openssh/openbsd-compat/ |
| HD | 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 …]
|
| /freebsd-13-stable/sbin/nos-tun/ |
| HD | 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() 232 close(tun); in Finish() 342 if (tun > net) in main() 343 lastfd = tun; in main() 350 FD_SET(tun,&rfds); FD_SET(net,&rfds); in main() 373 write(tun,buf+ipoff,len-ipoff); in main() 377 if(FD_ISSET(tun,&rfds)) { in main() [all …]
|
| HD | Makefile | 2 PROG= nos-tun 3 MAN= nos-tun.8
|
| /freebsd-13-stable/sbin/ping/tests/ |
| HD | 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)
|
| HD | ping_test.sh | 219 ifconfig `cat tun.txt` destroy 235 ifconfig `cat tun.txt` destroy 253 ifconfig `cat tun.txt` destroy
|
| /freebsd-13-stable/tests/sys/net/ |
| HD | if_tun_test.sh | 16 tun=$(jexec one ifconfig tun create) 17 jexec one ifconfig ${tun} name foo
|
| /freebsd-13-stable/sys/dev/usb/input/ |
| HD | wsp.c | 927 struct wsp_tuning tun = wsp_tuning; in wsp_intr_callback() local 942 wsp_runing_rangecheck(&tun); in wsp_intr_callback() 1051 if (sc->index[0]->touch_major > tun.pressure_tap_threshold && in wsp_intr_callback() 1056 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 && in wsp_intr_callback() 1057 sc->index[1]->touch_major > tun.pressure_tap_threshold-30) in wsp_intr_callback() 1061 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 1062 sc->index[1]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 1063 sc->index[2]->touch_major > tun.pressure_tap_threshold-40) in wsp_intr_callback() 1075 if (sc->index[0]->touch_major < tun.pressure_untouch_threshold && in wsp_intr_callback() 1087 if (!(params->tp->caps & HAS_INTEGRATED_BUTTON) || tun.enable_single_tap_clicks) { in wsp_intr_callback() [all …]
|
| /freebsd-13-stable/usr.sbin/ppp/ |
| HD | ip.c | 914 struct tun_data tun; in ip_Input() local 919 if (nb > sizeof tun.data) { in ip_Input() 921 l->name, nb, (int)(sizeof tun.data)); in ip_Input() 925 mbuf_Read(bp, tun.data, nb); in ip_Input() 928 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input() 933 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input() 940 tun.header.family = htonl(af); in ip_Input() 941 nb += sizeof tun - sizeof tun.data; in ip_Input() 942 data = (char *)&tun; in ip_Input() 944 data = tun.data; in ip_Input()
|
| HD | 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 …]
|
| HD | ppp.conf | 11 set log Phase Chat LCP IPCP CCP tun command
|
| HD | Makefile | 12 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
|
| /freebsd-13-stable/contrib/wpa/src/radius/ |
| HD | 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 …]
|
| /freebsd-13-stable/sys/contrib/device-tree/Bindings/mmc/ |
| D | marvell,xenon-sdhci.txt | 70 - marvell,xenon-phy-nr-success-tun: 76 - marvell,xenon-phy-tun-step-divider: 87 - marvell,xenon-tun-count: 115 marvell,xenon-tun-count = <11>; 134 marvell,xenon-tun-count = <9>;
|
| /freebsd-13-stable/crypto/openssh/ |
| HD | 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()
|
| HD | 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 $
|
| HD | 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 …]
|
| /freebsd-13-stable/sys/dev/mlx4/mlx4_ib/ |
| HD | mlx4_ib_cq.c | 590 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data() 591 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data() 592 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data() 597 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 598 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 599 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 602 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 603 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
| HD | mlx4_ib_mad.c | 505 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1939 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1940 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1941 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2093 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2099 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2127 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2129 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2146 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2186 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all …]
|
| HD | mlx4_ib.h | 279 struct mlx4_rcv_tunnel_hdr tun; member 464 struct mlx4_ib_demux_pv_ctx **tun; member
|
| /freebsd-13-stable/crypto/openssh/contrib/cygwin/ |
| HD | Makefile | 52 -$(INSTALL) -m 644 $(srcdir)/README.tun $(DESTDIR)$(sshdocdir)/README.tun
|
| /freebsd-13-stable/sys/contrib/device-tree/src/arm64/marvell/ |
| HD | armada-3720-espressobin-emmc.dts | 31 marvell,xenon-tun-count = <9>;
|
| HD | armada-3720-espressobin-v7-emmc.dts | 48 marvell,xenon-tun-count = <9>;
|
| /freebsd-13-stable/sbin/ |
| HD | Makefile | 53 nos-tun \
|
| /freebsd-13-stable/share/examples/ppp/ |
| HD | 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
|
| /freebsd-13-stable/rescue/rescue/ |
| HD | Makefile | 108 newfs_msdos nos-tun reboot \
|