git: if_tun: Support module load and unload

Aaron LI aly at crater.dragonflybsd.org
Thu Jul 19 01:15:18 PDT 2018


commit e9ff9cbbb2f67488b832b985884330539eb236cf
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jul 8 09:43:12 2018 +0800

    if_tun: Support module load and unload
    
    Track the created tun devices in a list, and record the number of opened
    tun devices.  Destroy all tun devices when unloading the module.
    
    Mainly based on if_tap.

Summary of changes:
 share/man/man4/tun.4    |  7 ++++
 sys/net/tun/if_tun.c    | 99 +++++++++++++++++++++++++++++++++++++++++--------
 sys/net/tun/if_tunvar.h |  2 +
 3 files changed, 92 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e9ff9cbbb2f67488b832b985884330539eb236cf


-- 
DragonFly BSD source repository


More information about the Commits mailing list