Home
last modified time | relevance | path

Searched refs:tun (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/drivers/net/
Dtun.c83 #define tun_debug(level, tun, fmt, args...) \ argument
85 if (tun->debug) \
86 netdev_printk(level, tun->dev, fmt, ##args); \
94 #define tun_debug(level, tun, fmt, args...) \ argument
97 netdev_printk(level, tun->dev, fmt, ##args); \
148 struct tun_struct __rcu *tun; member
164 struct tun_struct *tun; member
209 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu() argument
211 return __virtio16_to_cpu(tun->flags & TUN_VNET_LE, val); in tun16_to_cpu()
214 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16() argument
[all …]
DMakefile22 obj-$(CONFIG_TUN) += tun.o
DKconfig234 When a program opens /dev/net/tun, driver creates and registers
243 will be called tun.
/linux-4.1.27/drivers/media/tuners/
Dtuner-simple.c114 struct tunertype *tun; member
238 struct tunertype *tun = priv->tun; in simple_tuner_params() local
241 for (i = 0; i < tun->count; i++) in simple_tuner_params()
242 if (desired_type == tun->params[i].type) in simple_tuner_params()
246 if (i == tun->count) { in simple_tuner_params()
253 tuner_param_name(tun->params[i].type)); in simple_tuner_params()
255 return &tun->params[i]; in simple_tuner_params()
669 struct tunertype *tun; in simple_set_radio_freq() local
677 tun = priv->tun; in simple_set_radio_freq()
679 for (j = tun->count-1; j > 0; j--) in simple_set_radio_freq()
[all …]
/linux-4.1.27/Documentation/networking/
Dtuntap.txt19 In order to use the driver a program has to open /dev/net/tun and issue a
26 IP packets (with tun) or ethernet frames (with tap). Which one is being used
29 The package from http://vtun.sourceforge.net/tun contains two simple examples
30 for how to use tun and tap devices. Both programs work like a bridge between
39 mknod /dev/net/tun c 10 200
42 e.g. chmod 0666 /dev/net/tun
47 unprivileged users, then you need the /dev/net/tun device to be usable by
58 modprobe tun
62 /dev/net/tun is being opened.
68 "tun%d"), but (as far as I can see) this can be any valid network device name.
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dcq.c580 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data()
581 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data()
582 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data()
586 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data()
587 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data()
588 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data()
591 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data()
592 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
Dmad.c483 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
1766 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object()
1767 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object()
1768 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object()
1931 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update()
1937 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update()
1965 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
1967 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx()
1984 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx()
2024 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx()
[all …]
Dmlx4_ib.h252 struct mlx4_rcv_tunnel_hdr tun; member
437 struct mlx4_ib_demux_pv_ctx **tun; member
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt1204 helper do the host setup for you. This involves insmod-ing the tun.o
1216 kernel or as the tun.o module.
1423 Also, the /dev/net/tun device must be writable by the user running
1428 host# chmod 666 /dev/net/tun
1438 devices and chgrp /dev/net/tun to that group with mode 664 or 660.
/linux-4.1.27/tools/power/cpupower/po/
Dde.po403 " [nur der Administrator kann dies tun] *\n"
/linux-4.1.27/Documentation/
Ddevices.txt417 200 = /dev/net/tun TAP/TUN network device
/linux-4.1.27/
DMAINTAINERS10130 W: http://vtun.sourceforge.net/tun