git: DragonFly_RELEASE_5_4 network.subr: Cleanups and minor improvements

Aaron LI aly at crater.dragonflybsd.org
Mon Dec 17 17:28:57 PST 2018


commit 6fac7714ee9cf1ecc175f8a6cde9508ba739afbd
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/6fac7714ee9cf1ecc175f8a6cde9508ba739afbd


-- 
DragonFly BSD source repository



More information about the Commits mailing list