git: if_tap: Add TAPGIFNAME ioctl to get interface name

Aaron LI aly at crater.dragonflybsd.org
Mon Jul 16 23:58:44 PDT 2018


commit 96426785f2f8f03294e71daf889b364b5436d269
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jul 13 15:43:07 2018 +0800

    if_tap: Add TAPGIFNAME ioctl to get interface name
    
    This is a convenient shortcut to obtain the network interface name using
    file descriptor for character device.
    
    This ioctl is obtained from FreeBSD (revision 182880) which was further
    obtained from NetBSD.  This ioctl is used by softwares such as QEMU.
    
    Bump __DragonFly_version and update tap.4 man page.

Summary of changes:
 share/man/man4/tap.4 | 9 ++++++++-
 sys/net/tap/if_tap.c | 6 ++++++
 sys/net/tap/if_tap.h | 4 ++++
 sys/sys/param.h      | 3 ++-
 4 files changed, 20 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/96426785f2f8f03294e71daf889b364b5436d269


-- 
DragonFly BSD source repository



More information about the Commits mailing list