git: if_tun: Implement interface clone support

Aaron LI aly at
Thu Jul 19 01:15:19 PDT 2018

commit 925b0cbfbfed7123f1222f6b5650b7747937015d
Author: Aaron LI <aly at>
Date:   Sun Jul 8 21:07:20 2018 +0800

    if_tun: Implement interface clone support
    Now 'ifconfig tunX create' and 'ifconfig tunX destroy' work.
    The tun device will be automatically destroyed when being closed,
    except for the manually created tun device/interface by
    'ifconfig tunX create', similar to the tap(4) device.
    This interface clone support is based on the if_tap device.

Summary of changes:
 share/man/man4/tun.4    |  19 +++++-
 sys/net/tun/if_tun.c    | 154 +++++++++++++++++++++++++++++++++++++++++-------
 sys/net/tun/if_tunvar.h |   2 +
 3 files changed, 152 insertions(+), 23 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list