git: if_tun: Some small tweaks and cleanups

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


commit 0db5ecf136b9c767d1b577710a0fb9bcc838b2f3
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jul 7 20:49:04 2018 +0800

    if_tun: Some small tweaks and cleanups
    
    * Consistently use the TUN define instead of "tun".
    
    * Use variable "sc" instead of "tp" to refer to "struct tun_softc".
    
    * Use variable "ifp" (struct ifnet *) to make code more readable.
    
    * Static the bitmap variable.
    
    * Various style tweaks.

Summary of changes:
 sys/net/tun/if_tun.c    | 416 ++++++++++++++++++++++++++----------------------
 sys/net/tun/if_tun.h    |  17 +-
 sys/net/tun/if_tunvar.h |  16 +-
 3 files changed, 238 insertions(+), 211 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0db5ecf136b9c767d1b577710a0fb9bcc838b2f3


-- 
DragonFly BSD source repository


More information about the Commits mailing list