git: network.subr: Cleanups and minor improvements

Aaron LI aly at crater.dragonflybsd.org
Fri Dec 14 06:21:11 PST 2018


commit e4b0f1d1aee8ce626258fbcb4684dc67fdf84552
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Dec 11 14:05:20 2018 +0800

    network.subr: Cleanups and minor improvements
    
    * Localize variables in all functions.
    * Better name several variables (e.g., $i -> $_if).
    * Simplify several test and case usages.
    * Use the newly added "-n" option for ifconfig(8) in ifexists().
    * Improve comments, debug messages, and styles.
    * Print a message when calling rtsol(8) to auto configure an interface,
      since it may take several seconds.

Summary of changes:
 etc/network.subr | 185 ++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 121 insertions(+), 64 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list