git: ifconfig(8): Render non-ASCII SSID names with UTF-8 locales
commit d5e6c24f77ac1154d7c486381fc10f51c2d9e087 Author: Aaron LI Date: Sun Apr 12 20:56:39 2020 +0800 ifconfig(8): Render non-ASCII SSID names with UTF-8 locales Currently ifconfig(8) only prints the hex representation of ssid names with non-ASCII characters. Many modern terminals are able to properly render non-ASCII characters. This change checks if the terminal charmap is UTF-8, and if so, will render the characters, rather than the hex value. This behavior is circumvented by running ifconfig(8) in a non-UTF8 locale; e.g. C or POSIX. Obtained from FreeBSD: https://github.com/freebsd/freebsd/commit/137a4801848fde80544a987fb168ff56face2ffd https://reviews.freebsd.org/D15922 Summary of changes: sbin/ifconfig/ifieee80211.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5e6c24f77ac1154d7c486381fc10f51c2d9e087 -- DragonFly BSD source repository
git: ifconfig(8): Make lagg creation more fault-tolerant
commit 598a666bccff5d91ec5bc75a130e6b7d19147d49 Author: Aaron LI Date: Sun Apr 12 21:29:32 2020 +0800 ifconfig(8): Make lagg creation more fault-tolerant * Warn, don't exit, when SIOCSLAGGPORT returns an error. When we exit with an error during lagg creation, a single failed NIC (which no longer attaches) can prevent lagg creation and other configuration, such as adding an IPv4 address, and thus leave a machine unreachable. * Preserve non-EEXISTS errors for exit status from SIOCSLAGGPORT, in case scripts are looking for it. Hopefully this can be extended if other parts of ifconfig can allow a "soft" failure. * Improve the warning message to mention what lagg and what member are problematic. Obtained from FreeBSD: https://github.com/freebsd/freebsd/commit/dde41c97866152e8c7eb1f52f07e3e5ac43b2652 https://reviews.freebsd.org/D15046 Summary of changes: sbin/ifconfig/ifclone.c | 5 +++-- sbin/ifconfig/ifconfig.c | 5 +++-- sbin/ifconfig/ifconfig.h | 1 + sbin/ifconfig/ifgroup.c | 4 ++-- sbin/ifconfig/iflagg.c | 14 +++--- 5 files changed, 20 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/598a666bccff5d91ec5bc75a130e6b7d19147d49 -- DragonFly BSD source repository
git: ifconfig(8): Add '-f' option to print in more formats
commit 51a3d09e9966badabd8cb22a3721055a7ff47e20 Author: Aaron LI Date: Fri Jun 26 14:02:58 2020 +0800 ifconfig(8): Add '-f' option to print in more formats * Add the '-f' option to control the output formats of addresses, inet (IPv4) subnet masks, inet6 (IPv6) prefix length, Ethernet (MAC) address. The following output formats are supported: - address: numeric (default), host, FQDN - inet (IPv4) subnet masks: CIDR, dotted-quad, and traditional hex output (default) - inet6 (IPv6) prefix length: CIDR, traditional integer format (default) - ether (MAC address): colon-separated (default), dash-separated * The 'IFCONFIG_FORMAT' environment variable has the same usage as the '-f' option and can be overrided by the latter. * Some minor cleanups. Obtained from FreeBSD (revisions 301059 and 301185; review D2856), but with my own minor modifications. Summary of changes: sbin/ifconfig/af_inet.c | 40 ++--- sbin/ifconfig/af_inet6.c | 23 + sbin/ifconfig/af_link.c | 15 +--- sbin/ifconfig/ifconfig.8 | 90 sbin/ifconfig/ifconfig.c | 80 +++--- sbin/ifconfig/ifconfig.h | 1 + 6 files changed, 224 insertions(+), 25 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51a3d09e9966badabd8cb22a3721055a7ff47e20 -- DragonFly BSD source repository
git: ifconfig(8): Print more WPS attributes in verbose "list scan" output
commit 2ecde6140905fddab3e25c30b54bfe405886f488 Author: Aaron LI Date: Tue May 5 10:58:20 2020 +0800 ifconfig(8): Print more WPS attributes in verbose "list scan" output * Move WPS-related defines to a dedicated file * Add handlers for more WPS attributes Obtained-from: FreeBSD (revision 343204) Summary of changes: sbin/ifconfig/ifieee80211.c | 219 sys/netproto/802_11/ieee80211.h | 2 + sys/netproto/802_11/ieee80211_wps.h | 149 3 files changed, 349 insertions(+), 21 deletions(-) create mode 100644 sys/netproto/802_11/ieee80211_wps.h http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ecde6140905fddab3e25c30b54bfe405886f488 -- DragonFly BSD source repository
git: ifconfig(8): Eliminate trailing whitespace on inet6 and group lines
commit a143db0917208ba06adacd7010fede195588a17d Author: Aaron LI Date: Sun Apr 12 21:53:32 2020 +0800 ifconfig(8): Eliminate trailing whitespace on inet6 and group lines Obtained from FreeBSD: https://github.com/freebsd/freebsd/commit/edcbc8f7441a32ec27fb2e57542bf291cb01029e https://reviews.freebsd.org/D19004 Summary of changes: sbin/ifconfig/af_inet6.c | 36 +++- sbin/ifconfig/ifgroup.c | 4 ++-- 2 files changed, 21 insertions(+), 19 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a143db0917208ba06adacd7010fede195588a17d -- DragonFly BSD source repository
git: ifconfig(8): Drop two unused macros from ifieee80211.c
commit 808e96707e9276922a8cca487369f5774f7c0e63 Author: Aaron LI Date: Sun Apr 12 21:36:22 2020 +0800 ifconfig(8): Drop two unused macros from ifieee80211.c Obtained from FreeBSD: https://github.com/freebsd/freebsd/commit/1ce3befafefa7226bcff3621562943176fe87ff3 Summary of changes: sbin/ifconfig/ifieee80211.c | 5 - 1 file changed, 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/808e96707e9276922a8cca487369f5774f7c0e63 -- DragonFly BSD source repository
git: ifconfig(8): Use getifaddrs(3) from libc
commit 5ecbd7012b0fe835dcda54ca97b260ded1a4b136 Author: Aaron LI Date: Fri Jun 26 17:59:53 2020 +0800 ifconfig(8): Use getifaddrs(3) from libc Use libc's getifaddrs(3) instead of implementing its own version. Obtained from FreeBSD (revisions 166956 and 199770); with minor adjustments. While there, also adjust some styles. Summary of changes: sbin/ifconfig/af_inet.c | 25 +++-- sbin/ifconfig/af_inet6.c | 20 ++-- sbin/ifconfig/af_link.c | 6 +- sbin/ifconfig/ifconfig.c | 235 +-- sbin/ifconfig/ifconfig.h | 5 +- 5 files changed, 110 insertions(+), 181 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ecbd7012b0fe835dcda54ca97b260ded1a4b136 -- DragonFly BSD source repository
git: ifconfig.8: Update to show '-d' and '-u' is mutually exclusive
commit 7d438afad0520862de97054e705e9e7e184a5e3d Author: Aaron LI Date: Fri Jun 26 22:21:56 2020 +0800 ifconfig.8: Update to show '-d' and '-u' is mutually exclusive Summary of changes: sbin/ifconfig/ifconfig.8 | 18 -- sbin/ifconfig/ifconfig.c | 6 +++--- 2 files changed, 15 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7d438afad0520862de97054e705e9e7e184a5e3d -- DragonFly BSD source repository
git: ifconfig(8): Use correct interface name when setting flags
commit 6cfdf6e4249caa6bec584bbc49fc88d7681dbfdf Author: Aaron LI Date: Fri Jun 26 15:53:07 2020 +0800 ifconfig(8): Use correct interface name when setting flags Obtained from FreeBSD (revision 187253). With this change, the comment to setifflags() is now obsolete, so remove it. While there, improve styles a bit. Summary of changes: sbin/ifconfig/ifconfig.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6cfdf6e4249caa6bec584bbc49fc88d7681dbfdf -- DragonFly BSD source repository
git: ifconfig(8): Group addresses of each interface by family
commit 7fc7addcbc2bc5f6f644d5d161bce35ecbbebcca Author: Aaron LI Date: Fri Jun 26 20:56:17 2020 +0800 ifconfig(8): Group addresses of each interface by family Group the list of addresses associated with an interface by the address family. A stable sorting algorithm is employed here to preserve the order of addresses inside a single group of each interface. Obtained from FreeBSD (revisions 278080 and 278107). Summary of changes: sbin/ifconfig/ifconfig.c | 162 ++- 1 file changed, 160 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7fc7addcbc2bc5f6f644d5d161bce35ecbbebcca -- DragonFly BSD source repository
git: ifconfig(8): Support to filter output by interface groups
commit 80af6b5d1f3b09540f20bb00ab899d2d722b12e6 Author: Aaron LI Date: Fri Jun 26 22:34:43 2020 +0800 ifconfig(8): Support to filter output by interface groups Add options '-g ' and '-G ' 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
git: ifconfig(8): Speed up non-status operations to a single interface
commit 028754e08bbbc6c906ce702fdebdc75f785d3037 Author: Aaron LI Date: Fri Jun 26 21:38:11 2020 +0800 ifconfig(8): Speed up non-status operations to a single interface When performing a non-status operation on a single interface (e.g., set address or flags), it is not necessary for ifconfig(8) to build a list of all addresses in the system, sort them, and then iterate through them to look for the single interface of interest. Obtained from FreeBSD (revision 343535; review D18919) Summary of changes: sbin/ifconfig/ifconfig.c | 53 ++-- 1 file changed, 47 insertions(+), 6 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/028754e08bbbc6c906ce702fdebdc75f785d3037 -- DragonFly BSD source repository
git: ipfw3: Fix several comments and error messages
commit 1e831468c4b2ac63fde9c10100979d310441c9c5 Author: Aaron LI Date: Thu Feb 14 15:28:02 2019 +0800 ipfw3: Fix several comments and error messages Summary of changes: sbin/ipfw3/ipfw3.c | 4 ++-- sys/net/ipfw3/ip_fw3.c | 2 +- sys/netinet/in.h | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e831468c4b2ac63fde9c10100979d310441c9c5 -- DragonFly BSD source repository
git: ping.8: Mention ping6(8) and traceroute6(8)
commit a7ccbcb31f0729ea49b5b1f7c9387366ebc1ac3e Author: Aaron LI Date: Fri Jun 26 22:43:28 2020 +0800 ping.8: Mention ping6(8) and traceroute6(8) Summary of changes: sbin/ping/ping.8 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a7ccbcb31f0729ea49b5b1f7c9387366ebc1ac3e -- DragonFly BSD source repository
git: traceroute.8: Mention ping6(8) and traceroute6(8)
commit 7c8d170e3a048eba6b042d4d904949df4fbafb77 Author: Aaron LI Date: Fri Jun 26 22:45:21 2020 +0800 traceroute.8: Mention ping6(8) and traceroute6(8) Summary of changes: usr.sbin/traceroute/traceroute.8 | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7c8d170e3a048eba6b042d4d904949df4fbafb77 -- DragonFly BSD source repository