Home
last modified time | relevance | path

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

/linux-4.4.14/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); \
149 struct tun_struct __rcu *tun; member
164 struct tun_struct *tun; member
210 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument
212 return tun->flags & TUN_VNET_BE ? false : in tun_legacy_is_little_endian()
216 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be() argument
[all …]
DMakefile22 obj-$(CONFIG_TUN) += tun.o
DKconfig248 When a program opens /dev/net/tun, driver creates and registers
257 will be called tun.
/linux-4.4.14/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.4.14/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.4.14/drivers/infiniband/hw/mlx4/
Dcq.c589 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); in use_tunnel_data()
590 wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF; in use_tunnel_data()
591 wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0; in use_tunnel_data()
595 wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid); in use_tunnel_data()
596 memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4); in use_tunnel_data()
597 memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2); in use_tunnel_data()
600 wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32); in use_tunnel_data()
601 wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); in use_tunnel_data()
Dmad.c478 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
1792 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object()
1793 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object()
1794 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object()
1946 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update()
1952 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update()
1980 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
1982 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx()
1999 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx()
2039 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx()
[all …]
Dmlx4_ib.h267 struct mlx4_rcv_tunnel_hdr tun; member
452 struct mlx4_ib_demux_pv_ctx **tun; member
/linux-4.4.14/net/openvswitch/
Dactions.c895 struct ovs_tunnel_info *tun = nla_data(a); in execute_set_action() local
898 dst_hold((struct dst_entry *)tun->tun_dst); in execute_set_action()
899 skb_dst_set(skb, (struct dst_entry *)tun->tun_dst); in execute_set_action()
/linux-4.4.14/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.4.14/tools/power/cpupower/po/
Dde.po403 " [nur der Administrator kann dies tun] *\n"
/linux-4.4.14/Documentation/
Ddevices.txt417 200 = /dev/net/tun TAP/TUN network device
/linux-4.4.14/
DMAINTAINERS10933 W: http://vtun.sourceforge.net/tun