Searched refs:tun (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/sbin/nos-tun/
H A DMakefile3 PROG= nos-tun
4 MAN= nos-tun.8
H A Dnos-tun.c32 * 'nos-tun' program configure tunN interface as a point-to-point
39 * 'nos-tun' can works with itself and CISCO-routers.
40 * (It may also work with Linux 'nos-tun's, but
45 * ( nos-tun sends and accepts packets only to/from this
90 int tun; /* tunnel descriptor */ variable
119 /* Open tun device */
120 tun = open(dev_name, O_RDWR);
121 if (tun < 0) {
192 close(tun);
237 close(tun);
[all...]
/freebsd-13-stable/tests/sys/net/
H A Dif_tun_test.sh17 tun=$(jexec one ifconfig tun create)
18 jexec one ifconfig ${tun} name foo
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dport-net.c41 * including tun/tap forwarding and routing domains.
128 * SSH_TUN_LINUX Use the (newer) Linux tun/tap device
129 * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device
142 sys_tun_open(int tun, int mode, char **ifname) argument
151 if ((fd = open("/dev/net/tun", O_RDWR)) == -1) {
164 name = "tun%d";
168 if (tun != SSH_TUNID_ANY) {
169 if (tun > SSH_TUNID_MAX) {
171 tun, strerror(errno));
174 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun);
208 sys_tun_open(int tun, int mode, char **ifname) argument
[all...]
/freebsd-13-stable/usr.sbin/ppp/
H A Dppp.conf12 set log Phase Chat LCP IPCP CCP tun command
H A DMakefile13 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
H A Dip.c81 #include "tun.h"
916 struct tun_data tun; local
921 if (nb > sizeof tun.data) {
923 l->name, nb, (int)(sizeof tun.data));
927 mbuf_Read(bp, tun.data, nb);
930 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in,
935 if (!FilterCheck(tun.data, af, &bundle->filter.alive, &alivesecs)) {
942 tun.header.family = htonl(af);
943 nb += sizeof tun - sizeof tun
[all...]
H A Dbundle.c92 #include "tun.h"
313 * If it's an LCP and we're in multilink mode, adjust our tun
554 struct tun_data tun; local
560 data = (u_char *)&tun;
561 sz = sizeof tun;
563 data = tun.data;
564 sz = sizeof tun.data;
567 /* something to read from tun */
576 n -= sz - sizeof tun.data;
582 af = ntohl(tun
[all...]
/freebsd-13-stable/sys/dev/usb/input/
H A Dwsp.c850 struct wsp_tuning tun = wsp_tuning; local
862 wsp_runing_rangecheck(&tun);
948 if (sc->index[0]->touch_major > tun.pressure_tap_threshold &&
953 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-30 &&
954 sc->index[1]->touch_major > tun.pressure_tap_threshold-30)
958 if (sc->index[0]->touch_major > tun.pressure_tap_threshold-40 &&
959 sc->index[1]->touch_major > tun.pressure_tap_threshold-40 &&
960 sc->index[2]->touch_major > tun.pressure_tap_threshold-40)
972 if (sc->index[0]->touch_major < tun.pressure_untouch_threshold &&
984 if (!(params->caps & HAS_INTEGRATED_BUTTON) || tun
[all...]
/freebsd-13-stable/sbin/
H A DMakefile54 nos-tun \
/freebsd-13-stable/crypto/openssh/
H A Dmisc.c353 int tun; local
364 tun = a2tun(sp, NULL);
366 return (*remote == SSH_TUNID_ERR ? *remote : tun);
372 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr);
376 return (tun);
1032 tun_open(int tun, int mode, char **ifname) argument
1035 return (sys_tun_open(tun, mode, ifname));
1040 const char *tunbase = "tun";
1049 if (tun <= SSH_TUNID_MAX) {
1050 snprintf(name, sizeof(name), "/dev/%s%d", tunbase, tun);
[all...]
H A Dserverloop.c535 int mode, tun, sock; local
553 tun = packet_get_int();
555 if (tun != SSH_TUNID_ANY && auth_opts->force_tun_device != tun)
557 tun = auth_opts->force_tun_device;
559 sock = tun_open(tun, mode, &ifname);
564 c = channel_new(ssh, "tun", SSH_CHANNEL_OPEN, sock, sock, -1,
565 CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, 0, "tun", 1);
646 } else if (strcmp(ctype, "tun@openssh.com") == 0) {
/freebsd-13-stable/contrib/wpa/src/radius/
H A Dradius.c1455 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local
1477 tun = &tunnel[0];
1479 tun = &tunnel[data[0]];
1485 tun->tag_used++;
1486 tun->type = WPA_GET_BE24(data + 1);
1491 tun->tag_used++;
1492 tun->medium_type = WPA_GET_BE24(data + 1);
1506 tun->tag_used++;
1507 tun->vlanid = vlan_id;
1526 tun
[all...]
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cq.c590 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index);
591 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF;
592 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0;
596 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid);
597 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4);
598 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2);
601 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32);
602 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12);
H A Dmlx4_ib_mad.c505 tun_ctx = dev->sriov.demux[port-1].tun[slave];
1938 if (dev->sriov.demux[port - 1].tun[slave]) {
1939 kfree(dev->sriov.demux[port - 1].tun[slave]);
1940 dev->sriov.demux[port - 1].tun[slave] = NULL;
2092 dev->sriov.demux[port - 1].tun[slave], 1);
2098 dev->sriov.demux[port - 1].tun[slave]);
2126 ctx->tun = kcalloc(dev->dev->caps.sqp_demux,
2128 if (!ctx->tun)
2145 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]);
2185 kfree(ctx->tun);
[all...]
H A Dmlx4_ib.h279 struct mlx4_rcv_tunnel_hdr tun; member in struct:mlx4_ib_proxy_sqp_hdr
464 struct mlx4_ib_demux_pv_ctx **tun; member in struct:mlx4_ib_demux_ctx
/freebsd-13-stable/crypto/openssh/contrib/cygwin/
H A DMakefile52 -$(INSTALL) -m 644 $(srcdir)/README.tun $(DESTDIR)$(sshdocdir)/README.tun
/freebsd-13-stable/rescue/rescue/
H A DMakefile97 newfs_msdos nos-tun ping reboot \
/freebsd-13-stable/share/man/man4/
H A DMakefile556 tun.4 \
760 MLINKS+=tun.4 if_tun.4
/freebsd-13-stable/targets/pseudo/userland/
H A DMakefile.depend114 sbin/nos-tun \
/freebsd-13-stable/sys/net/
H A Dif_tuntap.c115 * protected by tun->tun_mtx, or by their owning subsystem. tun_dev is
179 static const char tunname[] = "tun";
196 /* tun */
197 static SYSCTL_NODE(_net_link, OID_AUTO, tun, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
584 * If tun cloning is enabled, only the superuser can create an
1003 * still there. If it is, we can safely try to busy the tun device.
1029 * tun user/consumer decides to rename the interface to conflict with
1133 "pid %d (%s), %s: tun/tap protocol violation, non-controlling process closed last.\n",
/freebsd-13-stable/sys/amd64/amd64/
H A Dpmap.c576 int tun; local
580 tun = 0;
581 TUNABLE_INT_FETCH("vm.pmap.di_locked", &tun);
582 return (tun != 0);

Completed in 240 milliseconds