git: if_tun: Clean up tunioctl()

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 31 05:26:46 PDT 2018


commit a50e0e62c76c85f67283f9bce5cf9021d64ae2c7
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Jul 31 19:43:48 2018 +0800

    if_tun: Clean up tunioctl()
    
    Introduce a variable 'caddr_t data' to make code cleaner.  Also improve
    the switch flow a bit.
    
    Based on: if_tap.c

Summary of changes:
 sys/net/tun/if_tun.c | 45 +++++++++++++++++++++++++--------------------
 1 file changed, 25 insertions(+), 20 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list