if_tap: Some small tweaks and cleanups
authorAaron LI <aly@aaronly.me>
Sat, 7 Jul 2018 10:57:10 +0000 (18:57 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 17 Jul 2018 06:57:32 +0000 (14:57 +0800)
commitcd086e3c60be82d5effacbacf80dc20dd2584d33
tree07ffa926eecab0d7c7fed87c15bee59b8bd3f207
parent416b24b35aef4f57c7027e2d504fdc185af3daec
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.
sys/net/tap/if_tap.c
sys/net/tap/if_tap.h
sys/net/tap/if_tapvar.h