git: if_tap: Some small tweaks and cleanups

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


commit cd086e3c60be82d5effacbacf80dc20dd2584d33
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jul 7 18:57:10 2018 +0800

    if_tap: Some small tweaks and cleanups
    
    * Consistently use the TAP define instead of "tap", also remove the
      CDEV_NAME define.
    
    * Consistently use "tap_if" instead of "arpcom.ac_if".
    
    * Better name the kqueue functions, and move the structs to the beginning.
    
    * Reorder to better group related functions.
    
    * Explicitly include the required <sys/queue.h> header.
    
    * Use variable "sc" instead of "tp" to refer to "struct tap_softc".
    
    * Staticize the bitmap variable.
    
    * Use the variable unit = minor(dev) more.
    
    * Improve the debug messages.
    
    * Various minor style tweaks and cleanups.

Summary of changes:
 sys/net/tap/if_tap.c    | 617 ++++++++++++++++++++++++------------------------
 sys/net/tap/if_tap.h    |   8 +-
 sys/net/tap/if_tapvar.h |  25 +-
 3 files changed, 323 insertions(+), 327 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list