git: ifconfig(8): Use nitems() consistently

2018-08-04 Thread Aaron LI
commit b6b91ec7b04797351b4efc099cd2b5530c90a328 Author: Aaron LI Date: Tue Mar 20 15:45:43 2018 +0800 ifconfig(8): Use nitems() consistently Summary of changes: sbin/ifconfig/af_inet6.c| 4 +--- sbin/ifconfig/ifbridge.c| 6 ++ sbin/ifconfig/ifcarp.c | 4 +---

git: ifconfig(8): Sync with FreeBSD a bit and various cleanups

2018-08-04 Thread Aaron LI
commit 46158ff547aeb44d75edbca7a8c8ecd565aec166 Author: Aaron LI Date: Sat Mar 24 16:56:39 2018 +0800 ifconfig(8): Sync with FreeBSD a bit and various cleanups * Sync ifconfig.c a bit with FreeBSD; replace several warnx() with errx(), and improve error messages a bit.

git: ifconfig(8): Use strlcpy() instead of strncpy()

2018-08-04 Thread Aaron LI
commit 80d2947bc9bb9395f7b2e028b5582c23a2858812 Author: Aaron LI Date: Fri Mar 23 09:37:13 2018 +0800 ifconfig(8): Use strlcpy() instead of strncpy() Summary of changes: sbin/ifconfig/af_inet.c | 4 ++-- sbin/ifconfig/ifcarp.c | 4 ++-- sbin/ifconfig/ifclone.c | 4 ++--

git: ifconfig(8): Use atexit() to ensure printing interface name

2018-08-04 Thread Aaron LI
commit e9e1626f77881d1971173b83792c178b084ff759 Author: Aaron LI Date: Fri Jun 22 21:23:25 2018 +0800 ifconfig(8): Use atexit() to ensure printing interface name The ifconfig program may not exit at the end of its main() function, so use atexit(printifnamemaybe) to ensure

git: : Clean up unused forward declaration

2018-08-04 Thread Aaron LI
commit 03d44125d13c9b84745fca401c1fd8cefd5db97b Author: Aaron LI Date: Tue Mar 20 16:15:42 2018 +0800 : Clean up unused forward declaration Also remove the inclusion of an unnecessary header . Summary of changes: sys/net/if_var.h | 10 +- 1 file changed, 1

git: if_tap: Interface type should be IFT_ETHER

2018-08-04 Thread Aaron LI
commit ce57146ea9d232b3f8a60279de0bdf859bde4c3f Author: Aaron LI Date: Sat Aug 4 21:07:04 2018 +0800 if_tap: Interface type should be IFT_ETHER Summary of changes: sys/net/tap/if_tap.c | 1 + 1 file changed, 1 insertion(+)

git: if_tap: Interface type should be IFT_ETHER (2)

2018-08-04 Thread Aaron LI
commit e389314b1feb6a5659f5f52a71878f14c29091af Author: Aaron LI Date: Sat Aug 4 22:06:32 2018 +0800 if_tap: Interface type should be IFT_ETHER (2) Ooops, forgot to include the necessary header in the last commit. Summary of changes: sys/net/tap/if_tap.c | 3 ++- 1 file

git: pc64 - If appropriate, determine TSC frequency via CPUID.

2018-08-04 Thread Imre Vadasz
commit 8b257adbda32b59bb93cb76a5daa122a9252f6c0 Author: Imre Vadász Date: Sat Aug 4 17:09:26 2018 +0200 pc64 - If appropriate, determine TSC frequency via CPUID. On Intel systems with Skylake and newer CPUs, and on modern Atom CPUs this avoids the ca. 200ms TSC calibration

git: etc/login.conf: Fix COPYRIGHT file path

2018-08-04 Thread Aaron LI
commit e72f0762b947abfb33852312cbec661ce8761559 Author: Aaron LI Date: Sun Aug 5 10:40:46 2018 +0800 etc/login.conf: Fix COPYRIGHT file path Summary of changes: etc/login.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

git: Makefile.inc1: Print more variables on error

2018-08-04 Thread Aaron LI
commit 81c8572743904f1c4c2a1f44b4edbc274122ea11 Author: Aaron LI Date: Fri Jun 15 13:01:54 2018 +0800 Makefile.inc1: Print more variables on error Print the .MAKE.MODE, PATH, MAKESYSPATH, MAKEOBJDIRPREFIX, DESTDIR, SHELL, .SHELL, .MAKE.MAKEFILES, and .PATH variables on

git: : Do not include for _KERNEL

2018-08-04 Thread Aaron LI
commit bff82488b6f45c2f067e4c552e649b1d3e07cd7c Author: Aaron LI Date: Tue Mar 20 16:04:41 2018 +0800 : Do not include for _KERNEL * Clean up an ancient leftover: do not include from for kernel stuffs. * Adjust various files to include the necessary header.

git: if_clone: Fix if_clone_destroy() with renamed cloned interface

2018-08-04 Thread Aaron LI
commit 3b1300daa841e3b20ed7417394ab6039c5f2506b Author: Aaron LI Date: Sat Aug 4 20:30:04 2018 +0800 if_clone: Fix if_clone_destroy() with renamed cloned interface Since the interface can be renamed (SIOCSIFNAME), it's very wrong for if_clone_destroy() to determine the unit

git: if_clone: Remove unneeded "ifc_namelen" from "struct if_clone"

2018-08-04 Thread Aaron LI
commit e224e5e71c0cee920b6a50d3397ff5e45be95e9a Author: Aaron LI Date: Sat Aug 4 20:13:39 2018 +0800 if_clone: Remove unneeded "ifc_namelen" from "struct if_clone" The "strlen(ifc_name)" is used instead. Summary of changes: sys/net/if_clone.c | 2 +- sys/net/if_clone.h | 3 +--

git: if_clone: Move "struct if_clonereq" over from

2018-08-04 Thread Aaron LI
commit 687c518e9dcb04166a0c34c27d609eaf82d1a5e2 Author: Aaron LI Date: Thu Jun 21 08:36:00 2018 +0800 if_clone: Move "struct if_clonereq" over from The "if_clonereq" struct is __BSD_VISIBLE and is only used by ifconfig(8) userland tool (via searching "if_clonereq" in the

git: if_clone: Fix if_clone_event invocation

2018-08-04 Thread Aaron LI
commit 0de0168f3274e2e1ddf79404ed32abbef82a8893 Author: Aaron LI Date: Thu Jun 21 08:42:16 2018 +0800 if_clone: Fix if_clone_event invocation As the parameter passed to the "if_clone_event" handler indicates, this event should be triggered when a new interface cloner is

git: if_clone: Refactor if_clone_create()

2018-08-04 Thread Aaron LI
commit 84cb91c376f39e5cbfcc52664bc818ac8154e0c6 Author: Aaron LI Date: Fri Jun 22 21:47:22 2018 +0800 if_clone: Refactor if_clone_create() In the wildcard case (the caller passes the interface name without a unit number), if_clone_create() should update the passed name

git: if_clone: Refactor cloner lookup and unit extraction

2018-08-04 Thread Aaron LI
commit 2010725f220e9d634a6a5904b38db67627cb3a80 Author: Aaron LI Date: Sat Aug 4 20:06:21 2018 +0800 if_clone: Refactor cloner lookup and unit extraction Break down the old 'if_clone_lookup()' function into the following 3 functions: - if_name2unit(): extract the

git: corepower - Add support for Platform Energy Counter.

2018-08-04 Thread Imre Vadasz
commit 214ee9b53298179f8906c527caa25e5a212ec8c6 Author: Imre Vadász Date: Sat Aug 4 10:58:17 2018 +0200 corepower - Add support for Platform Energy Counter. Summary of changes: sys/cpu/x86_64/include/specialreg.h| 1 + sys/dev/powermng/corepower/corepower.c | 21