aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_dsmark.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2019-03-20 12:16:42 +0300
committerDavid S. Miller <davem@davemloft.net>2019-03-21 13:19:15 -0700
commit0c3e0e3bb623c3735b8c9ab8aa8332f944f83a9f (patch)
treea0bf65cefd6045f9942a5f010121d4a73964b1b8 /net/sched/sch_dsmark.c
parentMerge branch 'ipv6-Change-addrconf_f6i_alloc-to-use-ip6_route_info_create' (diff)
downloadlinux-dev-0c3e0e3bb623c3735b8c9ab8aa8332f944f83a9f.tar.xz
linux-dev-0c3e0e3bb623c3735b8c9ab8aa8332f944f83a9f.zip
tun: Add ioctl() TUNGETDEVNETNS cmd to allow obtaining real net ns of tun device
In commit f2780d6d7475 "tun: Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device" it was missed that tun may change its net ns, while net ns of socket remains the same as it was created initially. SIOCGSKNS returns net ns of socket, so it is not suitable for obtaining net ns of device. We may have two tun devices with the same names in two net ns, and in this case it's not possible to determ, which of them fd refers to (TUNGETIFF will return the same name). This patch adds new ioctl() cmd for obtaining net ns of a device. Reported-by: Harald Albrecht <harald.albrecht@gmx.net> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions