summaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-05-09 22:54:21 -0700
committerDavid S. Miller <davem@davemloft.net>2009-05-09 22:54:21 -0700
commit980c9e8ceeb69ac4c921173d0d06323f5c678647 (patch)
tree6dc3a40501bf94177f40009cea3327dcb70462cb /net/decnet
parented9b58bc443a1210b5be1ded6421b17e015bf985 (diff)
downloadlinux-980c9e8ceeb69ac4c921173d0d06323f5c678647.tar.bz2
tun: add tun_flags, owner, group attributes in sysfs
This patch adds three attribute files in /sys/class/net/$dev/ for tun devices; allowing userspace to obtain the information which TUNGETIFF offers, and more, but without having to attach to the device in question (which may not be possible if it's in use). It also fixes a bug which has been present in the TUNGETIFF ioctl since its inception, where it would never set IFF_TUN or IFF_TAP according to the device type. (Look carefully at the code which I remove from tun_get_iff() and how the new tun_flags() helper is subtly different). Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions