| /freebsd-12-stable/crypto/openssh/openbsd-compat/ |
| 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 …]
|
| /freebsd-12-stable/sbin/nos-tun/ |
| D | nos-tun.c | 90 int tun; /* tunnel descriptor */ variable 120 tun = open(dev_name, O_RDWR); in tun_open() 121 if (tun < 0) { in tun_open() 192 close(tun); in tun_open() 237 close(tun); in Finish() 347 if (tun > net) in main() 348 lastfd = tun; in main() 355 FD_SET(tun,&rfds); FD_SET(net,&rfds); in main() 378 write(tun,buf+ipoff,len-ipoff); in main() 382 if(FD_ISSET(tun,&rfds)) { in main() [all …]
|
| D | Makefile | 4 PROG= nos-tun 5 MAN= nos-tun.8
|
| /freebsd-12-stable/tests/sys/net/ |
| D | if_tun_test.sh | 17 tun=$(jexec one ifconfig tun create) 18 jexec one ifconfig ${tun} name foo
|
| /freebsd-12-stable/sys/dev/usb/input/ |
| D | wsp.c | 847 struct wsp_tuning tun = wsp_tuning; in wsp_intr_callback() local 859 wsp_runing_rangecheck(&tun); in wsp_intr_callback() 945 if (sc->index[0]->touch_major > tun.pressure_tap_threshold && in wsp_intr_callback() 950 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 && in wsp_intr_callback() 951 sc->index[1]->touch_major > tun.pressure_tap_threshold-30) in wsp_intr_callback() 955 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 956 sc->index[1]->touch_major > tun.pressure_tap_threshold-40 && in wsp_intr_callback() 957 sc->index[2]->touch_major > tun.pressure_tap_threshold-40) in wsp_intr_callback() 969 if (sc->index[0]->touch_major < tun.pressure_untouch_threshold && in wsp_intr_callback() 981 if (!(params->caps & HAS_INTEGRATED_BUTTON) || tun.enable_single_tap_clicks) { in wsp_intr_callback() [all …]
|
| /freebsd-12-stable/usr.sbin/ppp/ |
| D | ip.c | 916 struct tun_data tun; in ip_Input() local 921 if (nb > sizeof tun.data) { in ip_Input() 923 l->name, nb, (int)(sizeof tun.data)); in ip_Input() 927 mbuf_Read(bp, tun.data, nb); in ip_Input() 930 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in, in ip_Input() 935 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) { in ip_Input() 942 tun.header.family = htonl(af); in ip_Input() 943 nb += sizeof tun - sizeof tun.data; in ip_Input() 944 data = (char *)&tun; in ip_Input() 946 data = tun.data; in ip_Input()
|
| D | bundle.c | 554 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 …]
|
| D | ppp.conf | 12 set log Phase Chat LCP IPCP CCP tun command
|
| D | Makefile | 12 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
|
| /freebsd-12-stable/contrib/wpa/src/radius/ |
| D | radius.c | 1455 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; in radius_msg_get_vlanid() local 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() 1492 tun->medium_type = WPA_GET_BE24(data + 1); 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() [all …]
|
| /freebsd-12-stable/crypto/openssh/ |
| D | misc.c | 508 int tun; in a2tun() local 519 tun = a2tun(sp, NULL); in a2tun() 521 return (*remote == SSH_TUNID_ERR ? *remote : tun); 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() 1407 snprintf(name, sizeof(name), "/dev/%s%d", tunbase, tun); in tun_open() 1409 } else if (tun == SSH_TUNID_ANY) { in tun_open() [all …]
|
| 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()
|
| 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 $
|
| /freebsd-12-stable/sys/dev/mlx4/mlx4_ib/ |
| D | 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() 596 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data() 597 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data() 598 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data() 601 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data() 602 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
|
| D | mlx4_ib_mad.c | 505 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 1938 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object() 1939 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object() 1940 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object() 2092 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update() 2098 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update() 2126 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx() 2128 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx() 2145 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx() 2185 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx() [all …]
|
| /freebsd-12-stable/crypto/openssh/contrib/cygwin/ |
| D | Makefile | 52 -$(INSTALL) -m 644 $(srcdir)/README.tun $(DESTDIR)$(sshdocdir)/README.tun
|
| /freebsd-12-stable/usr.sbin/pc-sysinstall/backend-query/ |
| D | detect-nics.sh | 32 lo|fwe|fwip|plip|pfsync|pflog|tun)
|
| /freebsd-12-stable/sys/gnu/dts/arm64/marvell/ |
| D | armada-3720-espressobin-emmc.dts | 29 marvell,xenon-tun-count = <9>;
|
| D | armada-3720-espressobin-v7-emmc.dts | 46 marvell,xenon-tun-count = <9>;
|
| /freebsd-12-stable/sbin/ |
| D | Makefile | 54 nos-tun \
|
| /freebsd-12-stable/tools/tools/nanobsd/pcengines/ |
| D | ALIX_DSK | 72 device tun
|
| /freebsd-12-stable/share/examples/ppp/ |
| D | ppp.conf.span-isp | 50 # o Both the Gateway and the Receiver machines must have several tun 85 # The Receiver machine should have N tun interfaces (where N is the maximum
|
| /freebsd-12-stable/release/picobsd/bridge/ |
| D | PICOBSD | 107 device tun # Packet tunnel.
|
| /freebsd-12-stable/rescue/rescue/ |
| D | Makefile | 104 newfs_msdos nos-tun ping reboot \
|
| /freebsd-12-stable/release/picobsd/qemu/ |
| D | PICOBSD | 113 device tun # Packet tunnel.
|