git: ifconfig(8): Support to filter output by interface groups

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 26 07:55:32 PDT 2020


commit 80af6b5d1f3b09540f20bb00ab899d2d722b12e6
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Jun 26 22:34:43 2020 +0800

    ifconfig(8): Support to filter output by interface groups
    
    Add options '-g <match_group>' and '-G <no_group>' to select and
    unselect interfaces by groups in the output of 'ifconfig -a', just
    like the existing '-d' and '-u' options to select only interfaces
    that are down or up, respectively.  Note that '-g' and '-G' options
    can be used at the same time to apply both conditions and their
    arguments may contain shell patterns.
    
    Examples:
    * To exclude loopback from the list:
          ifconfig -a -G lo
    * To list interfaces whose group names begin with 't':
          ifconfig -a -g 't*'
    
    Obtained from FreeBSD (revision 361790; review D25029)

Summary of changes:
 sbin/ifconfig/ifconfig.8 | 26 ++++++++++++--
 sbin/ifconfig/ifconfig.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 112 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/80af6b5d1f3b09540f20bb00ab899d2d722b12e6


-- 
DragonFly BSD source repository



More information about the Commits mailing list