git: DragonFly_RELEASE_5_2 nrelease/Makefile: Fix to use GITURL_{SRC, DPORTS} and update help

2018-06-08 Thread Aaron LI
commit 60654128f150954bc0f3f837c229b5d5ecf18dff Author: Aaron LI Date: Fri Jun 8 15:58:47 2018 +0800 nrelease/Makefile: Fix to use GITURL_{SRC,DPORTS} and update help The GITHOST and GITHOST_DPORTS were updated to be GITURL_SRC and GITURL_DPORTS

git: README: Remove the secure entry; add the doc entry.

2018-06-08 Thread Aaron LI
commit b224b70ed7e311123db802d9e76505c70566e9a1 Author: Aaron LI Date: Fri Jun 1 12:46:21 2018 +0800 README: Remove the secure entry; add the doc entry. Those contents resided under secure were merged into crypto some time ago. Summary of changes: README | 4 ++-- 1 file

git: etc/crontab: Do not set HOME; remove /etc from PATH

2018-06-08 Thread Aaron LI
commit be4f6be01c03e8cba9e937ca117d95a59f709343 Author: Aaron LI Date: Fri Jun 1 12:49:41 2018 +0800 etc/crontab: Do not set HOME; remove /etc from PATH Do not set the HOME environment variable (checked with FreeBSD). Remove "/etc" from PATH (checked wi

git: README: Update descriptions to sys/config files

2018-06-08 Thread Aaron LI
commit 6dfa5e2f7c6d51dd446334a68b911d0f0c0a53d7 Author: Aaron LI Date: Fri Jun 1 12:47:58 2018 +0800 README: Update descriptions to sys/config files Summary of changes: README | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) http://gitweb.dragonflybsd.org

git: mk/crunchgen: Fix the ${MAKE} quotation and improve style

2018-06-08 Thread Aaron LI
commit df820087d62ba7fa38c40615f9f8e6e5a751d839 Author: Aaron LI Date: Fri Jun 1 13:06:22 2018 +0800 mk/crunchgen: Fix the ${MAKE} quotation and improve style The fix to the ${MAKE} quotation is brought from FreeBSD. Various style fixes to make this makefile look much

git: initrd: symlink tmp to var/tmp to save a second tmpfs mount

2018-06-08 Thread Aaron LI
commit 2c6b09fdbe57f3e43b56cb5e7d8fc589aa70c0b0 Author: Aaron LI Date: Fri Jun 1 14:57:37 2018 +0800 initrd: symlink tmp to var/tmp to save a second tmpfs mount Since a tmpfs is required to mount at /var in the initrd, symlink /tmp to /var/tmp to save a second tmpfs mount

git: initrd: Make etc/motd more informative

2018-06-08 Thread Aaron LI
commit fa8f1016ba7a7a1aca1f77c6fa6b838fabdb774e Author: Aaron LI Date: Fri Jun 1 14:08:57 2018 +0800 initrd: Make etc/motd more informative Provide more information about the rescue shell environment, such as how to mount the real root partition and continue, the mined

git: mkinitrd(8): Use getopts instead of getopt(1) for command options

2018-06-08 Thread Aaron LI
commit e6d2b207c86b3715f2b17a04525b97d722da1a78 Author: Aaron LI Date: Fri Jun 1 15:48:13 2018 +0800 mkinitrd(8): Use getopts instead of getopt(1) for command options Use the shell built-in getopts to deal with command line options, which is more easier to use and allows

git: etc/Makefile: Do not install rc.firewall as executable

2018-06-08 Thread Aaron LI
commit af0aa05239550f7ac7afbaf1fd762233c113c290 Author: Aaron LI Date: Fri Jun 1 12:19:07 2018 +0800 etc/Makefile: Do not install rc.firewall as executable /etc/rc.firewall doesn't need to be installed as executable, similar to /etc/rc.firewall6 . Summary of changes: etc

git: initrd/rc: mount initrd ro; set PATH, HOME, NEW_ROOT; cleanups

2018-06-08 Thread Aaron LI
commit bffbc0686a965d67b3c33dbd3eab87e7df313aa0 Author: Aaron LI Date: Fri Jun 1 15:14:27 2018 +0800 initrd/rc: mount initrd ro; set PATH, HOME, NEW_ROOT; cleanups * The initrd is mounted readonly by default, do not upgrade to be readwrite. NOTE: This may cause

git: nrelease/Makefile: Fix to use GITURL_{SRC, DPORTS} and update help

2018-06-08 Thread Aaron LI
commit 8126e4ef69615a815a2767b95b8f7b934ca1e56d Author: Aaron LI Date: Fri Jun 8 15:58:47 2018 +0800 nrelease/Makefile: Fix to use GITURL_{SRC,DPORTS} and update help The GITHOST and GITHOST_DPORTS were updated to be GITURL_SRC and GITURL_DPORTS

git: initrd: Detach from the world and build on the fly

2018-06-08 Thread Aaron LI
commit e79a303f7db7331d570bb6c6abdd555eeefdcdc2 Author: Aaron LI Date: Sat Jun 2 13:31:45 2018 +0800 initrd: Detach from the world and build on the fly Why --- Currently, the files for initrd image creation are built and installed at /usr/share/initrd by "build

git: hammer2: do not print error=0x0000 on bulkfree

2018-06-08 Thread Aaron LI
commit 746bb04f7f7f1ec434bb18a3463c910eb6fc7f4d Author: Aaron LI Date: Fri Jun 1 12:09:59 2018 +0800 hammer2: do not print error=0x on bulkfree Make hammer2 bulkfree do not print "error=0x" (i.e., no error occurred). This makes the system log messages

git: Makefile{, .inc1}: Merge user-driven target descriptions and cleanups

2018-06-08 Thread Aaron LI
commit f71956f75f646783a438957a0c60e142bbb8725d Author: Aaron LI Date: Sat Jun 2 13:09:19 2018 +0800 Makefile{,.inc1}: Merge user-driven target descriptions and cleanups * Merge the descriptions to user-driven targets from Makefile.inc1 to Makefile and improve the wordings

git: periodic: return $rc instead of "$rc" for several scripts

2018-06-08 Thread Aaron LI
commit 93d00c83db6186c0fc528c1a7c3ca9c215444c94 Author: Aaron LI Date: Fri Jun 1 12:56:05 2018 +0800 periodic: return $rc instead of "$rc" for several scripts Also fix a minor whitespace issue in 200.chkmounts . Summary of changes: etc/periodic/security/200.chkm

git: initrd: don't leave an empty /rescue after switching location

2018-06-09 Thread Aaron LI
commit 111cbfe4120e75ea2a4ae370743107616748cd43 Author: Aaron LI Date: Sat Jun 9 16:45:48 2018 +0800 initrd: don't leave an empty /rescue after switching location The recent initrd change will remove the rescue tools from their old location (/usr/share/initrd) but leave

git: mk/prog: Support CRUNCH_CFLAGS for crunchgen's buildopts

2018-07-01 Thread Aaron LI
commit af6593369b649c4cbafba7e13d587c9fb8857ace Author: Aaron LI Date: Sat Jun 9 19:22:14 2018 +0800 mk/prog: Support CRUNCH_CFLAGS for crunchgen's buildopts Taken-from: FreeBSD Summary of changes: share/mk/bsd.prog.mk | 4 1 file changed, 4 insertions(+) http

git: mk/crunchgen: Allow to use symlinks for crunched programs

2018-07-01 Thread Aaron LI
commit a4e18c0f6d890e6df865a8832a5dc07dfffe7c02 Author: Aaron LI Date: Sat Jun 9 13:42:51 2018 +0800 mk/crunchgen: Allow to use symlinks for crunched programs Add support to create symlinks (i.e., soft links) instead of hard links for the crunched programs

git: mk/crunchgen: Do not hard code the path to the source directories

2018-07-01 Thread Aaron LI
commit 8d50421afe51abbc28166f78d133b69d49ffd5ba Author: Aaron LI Date: Sat Jun 9 13:39:18 2018 +0800 mk/crunchgen: Do not hard code the path to the source directories Introduce the variable CRUNCH_PATH_${D} to specify the path to the base source directory ${D

git: initrd: Crunch lvm(8) with sbin.libcrypto

2018-07-01 Thread Aaron LI
commit 8692d13918892c3f474fc05d37f17fe125bb61bd Author: Aaron LI Date: Sat Jun 9 23:39:49 2018 +0800 initrd: Crunch lvm(8) with sbin.libcrypto Do not build lvm(8) alone since it can be crunched together with sbin.libcrypto which contains cryptsetup(8). This also saves about

git: initrd: Better check the created initrd before installing

2018-07-01 Thread Aaron LI
commit f170ef5974344c8139485bbe2a8a2cd83c9e5ea5 Author: Aaron LI Date: Sat Jun 9 23:47:31 2018 +0800 initrd: Better check the created initrd before installing Improve mkinitrd.sh to check /sbin/oinit, /bin/sh and /etc/rc on the created initrd image to avoid installing

git: lvm(8): Do not build readline support for the rescue version

2018-07-01 Thread Aaron LI
commit 8f0a90f5d4e9471043d01f7ebda91226c63f6786 Author: Aaron LI Date: Sat Jun 9 23:36:43 2018 +0800 lvm(8): Do not build readline support for the rescue version Make use of the RESCUE make variable to not build the readline support for its rescue version (to be installed

git: cryptsetup(8): Tidy up Makefile

2018-07-01 Thread Aaron LI
commit 6695d7e4812c9cd0e564ac95224b3cbfe4b5a060 Author: Aaron LI Date: Sat Jun 9 23:35:32 2018 +0800 cryptsetup(8): Tidy up Makefile Summary of changes: gnu/sbin/cryptsetup/Makefile | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) http

git: mk/crunchgen: Remove the unused CRUNCH_BUILDTOOLS support/hack

2018-07-01 Thread Aaron LI
commit eba33b2efa3616876d9268b0da3012077131c8da Author: Aaron LI Date: Sat Jun 9 13:31:22 2018 +0800 mk/crunchgen: Remove the unused CRUNCH_BUILDTOOLS support/hack The CRUNCH_BUILDTOOLS is commented out in initrd/bin/Makefile. And we already use pregenerated headers for bin

git: mk/crunchgen: Remove the unimplemented ${_+_}

2018-07-01 Thread Aaron LI
commit b316b9ce72d3ca0de07b830c2d2f3bbd235aa959 Author: Aaron LI Date: Mon Jul 2 09:27:29 2018 +0800 mk/crunchgen: Remove the unimplemented ${_+_} The ${_+_} make variable is introduced by FreeBSD in revision 133369, but we don't implement it, so remove it. Summary

git: initrd: Add -lpthread for hammer2

2018-07-01 Thread Aaron LI
commit fdfef0004ea9721dabcef8655608993b3dada3e9 Author: Aaron LI Date: Mon Jul 2 10:01:19 2018 +0800 initrd: Add -lpthread for hammer2 The 'pthread' library was lost from commit 8692d13918892c3f474fc05d37f17fe125bb61bd when rebasing. Summary of changes: initrd

git: vi(1): Do not build iconv(3) support for the rescue version

2018-07-01 Thread Aaron LI
commit c4d5b74b53b49427ec4ed19ed3abd071bedff5c6 Author: Aaron LI Date: Mon Jun 11 12:35:33 2018 +0800 vi(1): Do not build iconv(3) support for the rescue version The iconv(3) support requires dynamic library access, which is impossible for the statically liked rescue

git: Makefile.inc1: Remove the obsolete crunch from bootstrap tools

2018-07-01 Thread Aaron LI
commit d3cfb461e4516e842e463c68b46ecf19bcb483a1 Author: Aaron LI Date: Fri Jun 15 12:41:43 2018 +0800 Makefile.inc1: Remove the obsolete crunch from bootstrap tools Since rescue build is now detached from buildworld, so crunchgen(1) and crunchide(1) are no longer needed

git: initrd: Fix parallel build

2018-07-01 Thread Aaron LI
commit 7279052efaf1dc2bca86b53993d0d71ed106b308 Author: Aaron LI Date: Mon Jul 2 09:30:20 2018 +0800 initrd: Fix parallel build Add explicit target orders to oinit/Makefile, because such orders are set in but not in . Since the make targets (e.g., depend, all

git: mk/crunchgen: Fix parallel builds by ordering targets

2018-07-01 Thread Aaron LI
commit f5d8234e8535a5fbbccf83bdb9a832e1d5f36088 Author: Aaron LI Date: Mon Jul 2 09:06:31 2018 +0800 mk/crunchgen: Fix parallel builds by ordering targets Order the build targets (clean, cleandepend, cleandir, obj, objlink, depend, all, install) to avoid the race in parallel

git: Add the initrd.7 man page

2018-07-02 Thread Aaron LI
commit 2cfd98c8e7ec3b482fae9e58398a28a362806b17 Author: Aaron LI Date: Sun Jul 1 13:23:59 2018 +0800 Add the initrd.7 man page This man page is partly based on the removed mkinitrd.8 man page written by Alex Hornung. Reviewed-by: Sascha Wildner Summary of changes

git: mount(8): Use tab for indentation

2018-06-25 Thread Aaron LI
commit d6e4eb133b6d24740fe4af19068337121f9a56ea Author: Aaron LI Date: Tue Jun 26 09:53:02 2018 +0800 mount(8): Use tab for indentation Summary of changes: sbin/mount/mount.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) http://gitweb.dragonflybsd.org

git: lsvfs(1): Remove an unused define; Avoid a type cast

2018-06-25 Thread Aaron LI
commit be908d4edcae7384d3f9f12d9d400efafdc9ad49 Author: Aaron LI Date: Tue Jun 26 09:56:36 2018 +0800 lsvfs(1): Remove an unused define; Avoid a type cast Summary of changes: usr.bin/lsvfs/lsvfs.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) http

git: dloader: Remove obsolete "linux_load" from config files

2018-06-25 Thread Aaron LI
commit f05b32115b4a8b23cc5215b93ffb164c2a0c374e Author: Aaron LI Date: Thu Jan 11 19:47:40 2018 +0800 dloader: Remove obsolete "linux_load" from config files Based on the patch submitted by mazocomp in bug #3115. Summary of changes: sys/boot/dloader/loader-boot

git: updatedb(8): Be simple and search from "/" by default

2018-06-26 Thread Aaron LI
commit c87dd5363ddd4897d352e9d226c8df16e62f7f04 Author: Aaron LI Date: Tue Jun 26 19:38:17 2018 +0800 updatedb(8): Be simple and search from "/" by default This reverts the behavior change made in commit 6877ea2d2f7caf9b13202f2524abf3b3cf815b45. That cha

git: DragonFly_RELEASE_5_2 updatedb(8): Be simple and search from "/" by default

2018-06-26 Thread Aaron LI
commit 17021bff834e61e12a47c5bc3b0ea0ff86c8a518 Author: Aaron LI Date: Tue Jun 26 19:38:17 2018 +0800 updatedb(8): Be simple and search from "/" by default This reverts the behavior change made in commit 6877ea2d2f7caf9b13202f2524abf3b3cf815b45. That cha

git: rmuser(8): Use getopts for commandline options

2018-06-26 Thread Aaron LI
commit 15a59a19915f78e28400dfa6e8c5b900e91b84c6 Author: Aaron LI Date: Wed Jun 27 12:59:19 2018 +0800 rmuser(8): Use getopts for commandline options Improve the option logic a bit and fix whitespaces. Summary of changes: usr.sbin/adduser/rmuser.sh | 96

git: : Fix a minor comment issue

2018-07-03 Thread Aaron LI
commit e596b900d38bef4274497250ca012a5656d05528 Author: Aaron LI Date: Tue Jul 3 19:42:48 2018 +0800 : Fix a minor comment issue Summary of changes: sys/sys/gpt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff

git: vis(3): Add VIS_ALL support

2018-07-03 Thread Aaron LI
commit 9dbd27e25802bcfced6400231f9f622f9529c7f5 Author: Aaron LI Date: Mon Jun 11 12:44:07 2018 +0800 vis(3): Add VIS_ALL support OpenSSH requires VIS_ALL and therefore uses the version bundled with itself, but this causes the vis.o symbol conflicts between libc

git: vis(1): Add option -a to use VIS_ALL

2018-07-03 Thread Aaron LI
commit bbd84283922c2ad51a591bcba1c111c0474b75f8 Author: Aaron LI Date: Mon Jun 11 12:47:36 2018 +0800 vis(1): Add option -a to use VIS_ALL Taken-from: OpenBSD Summary of changes: usr.bin/vis/vis.1 | 7 +-- usr.bin/vis/vis.c | 23 +-- 2 files changed

git: libssh: No need of compat vis.c as we support VIS_ALL

2018-07-03 Thread Aaron LI
commit a30b61461e41411595cd6cedbc04ba3b02cb5ee0 Author: Aaron LI Date: Mon Jun 11 13:29:31 2018 +0800 libssh: No need of compat vis.c as we support VIS_ALL This helps avoid the vis.o symbol conflicts between libc and libssh. Summary of changes: lib/libssh/Makefile | 5

git: Do not auto build rescue tools when ${DESTDIR} != "/"

2018-07-03 Thread Aaron LI
commit 81f07c26a0092e14e306af188076d27601b92328 Author: Aaron LI Date: Tue Jul 3 20:15:17 2018 +0800 Do not auto build rescue tools when ${DESTDIR} != "/" When installworld to an alternative root (i.e., ${DESTDIR} != "/"), do not automatically bu

git: vendor/OPENSSH openssh: Removed unused vis.[ch] from the vendor branch

2018-07-03 Thread Aaron LI
commit 19d5a87fada808e9fb5800450db194b3bb683ca4 Author: Aaron LI Date: Wed Jul 4 13:01:41 2018 +0800 openssh: Removed unused vis.[ch] from the vendor branch Our libc's vis(3) now supports VIS_ALL, which is required by libssh. Summary of changes: crypto/openssh/openbsd-compat

git: devfs: Minor style fixes

2018-08-03 Thread Aaron LI
commit 7cf221aeddcc62b2d8ff0b9c77962e33b302318e Author: Aaron LI Date: Fri Aug 3 20:09:19 2018 +0800 devfs: Minor style fixes Summary of changes: sys/vfs/devfs/devfs_rules.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) http

git: kernel: Use nitems() from instead of custom define

2018-07-25 Thread Aaron LI
commit 249483dfec1fb7a8da1e2094624856a84033a5b0 Author: Aaron LI Date: Tue Mar 20 15:48:55 2018 +0800 kernel: Use nitems() from instead of custom define Since is already included in these files. Summary of changes: sys/bus/u4b/wlan/if_uath.c | 4

git: Move jail staffs from and to

2018-07-25 Thread Aaron LI
commit e1c6b0c1ee471ec790888a1edec44099e6601971 Author: Aaron LI Date: Tue Mar 20 15:52:54 2018 +0800 Move jail staffs from and to * : Move out prison_if() function prototype to * : Move out prison_replace_wildcards() and prison_remote_ip() function prototypes

git: sys/gpt.h: Add new entry types and CTASSERT

2018-07-25 Thread Aaron LI
commit 9db2a7d021973a14dd4fdb2c2992e44c971401ae Author: Aaron LI Date: Tue Jul 24 09:20:14 2018 +0800 sys/gpt.h: Add new entry types and CTASSERT Obtained-from: FreeBSD Summary of changes: sys/sys/gpt.h | 40 ++-- 1 file changed, 34

git: disklabel64(8): Remove an obsolete comment

2018-07-25 Thread Aaron LI
commit 87b121bb794a1fa8b3cd0592b348fe6f880475bf Author: Aaron LI Date: Tue Jul 24 09:22:59 2018 +0800 disklabel64(8): Remove an obsolete comment Also consistently use the locally defined streq() function. Summary of changes: sbin/disklabel64/disklabel64.c | 5 + 1 file

git: if_tun: Add TUNGIFNAME ioctl to get the interface name

2018-07-31 Thread Aaron LI
commit 0df03f127ea71fb9dbcedbdc065f211514feefdf Author: Aaron LI Date: Tue Jul 31 19:47:37 2018 +0800 if_tun: Add TUNGIFNAME ioctl to get the interface name This ioctl helps to get the name of the network interface associated with the tun control device via its file

git: if_tap: Remove the unnecessary forward declaration in if_tap.h

2018-07-31 Thread Aaron LI
commit 5b60e9a77859ef101953a2cd02eebd630d8387d0 Author: Aaron LI Date: Tue Jul 31 19:59:45 2018 +0800 if_tap: Remove the unnecessary forward declaration in if_tap.h Summary of changes: sys/net/tap/if_tap.h | 2 -- 1 file changed, 2 deletions(-) http://gitweb.dragonflybsd.org

git: if_tun: Clean up tunioctl()

2018-07-31 Thread Aaron LI
commit a50e0e62c76c85f67283f9bce5cf9021d64ae2c7 Author: Aaron LI Date: Tue Jul 31 19:43:48 2018 +0800 if_tun: Clean up tunioctl() Introduce a variable 'caddr_t data' to make code cleaner. Also improve the switch flow a bit. Based on: if_tap.c Summary of changes

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 +--- sbin

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 insertion

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(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff

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: 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff

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 error

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

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 se

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 interf

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

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

2018-08-05 Thread Aaron LI
commit e2d4945959773df738afe9def357f1efda11428e 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: Revert "pf: Allow disappearing or not yet existing interfaces for ALTQ"

2018-08-08 Thread Aaron LI
commit d15093b968014ef49e9a6d18ef3d97557410473e Author: Aaron LI Date: Thu Aug 9 10:40:36 2018 +0800 Revert "pf: Allow disappearing or not yet existing interfaces for ALTQ" This reverts commit 0a887f91f9633448c99b9a5b7c6116a0a22d25d6. 1. It's incorrect

Re: git: pf: Allow disappearing or not yet existing interfaces for ALTQ

2018-08-08 Thread Aaron LI
on range is used to make sure that the ifp does not get ripped > out behind our back. To be frank, we don't even suffer the issue this > fix is intended to address; it only makes the code convoluted. > > On Wed, Aug 8, 2018 at 5:10 PM, Aaron LI > wrote: > > > > comm

git: development.7: Update repo creation command

2018-08-06 Thread Aaron LI
commit 64fc8f067a489eef06793f317eb541d87131fc29 Author: Aaron LI Date: Tue Aug 7 10:40:31 2018 +0800 development.7: Update repo creation command Reported-by: resolution (on IRC) Summary of changes: share/man/man7/development.7 | 9 - 1 file changed, 4 insertions(+), 5

git: eventhandler: Implement ifnet_event

2018-08-08 Thread Aaron LI
commit fcddd1b6c3b2924a8a022caf183b8f186e7d5cae Author: Aaron LI Date: Mon Jun 25 17:00:21 2018 +0800 eventhandler: Implement ifnet_event Implement the "ifnet_event" which is triggered on interface up and down. Taken-from: FreeBSD Summary of changes: shar

git: bpf: Move bpf_track event declaration to

2018-08-08 Thread Aaron LI
commit e826117ee8aacb5698d8c6af3d39ba34be643c84 Author: Aaron LI Date: Mon Jun 25 17:31:16 2018 +0800 bpf: Move bpf_track event declaration to Move the declaration of the "bpf_track" event from to . Document the "bpf_track" event in eve

git: eventhandler.9: Update events list

2018-08-08 Thread Aaron LI
commit acc24b690ed6d89cb2611bb8ee46800d01acaa84 Author: Aaron LI Date: Mon Jun 25 17:59:15 2018 +0800 eventhandler.9: Update events list * Remove "dev_clone" * Add "iflladdr_event", "mountroot", and "usb_dev_configured".

git: eventhandler: Implement ifnet_link_event

2018-08-08 Thread Aaron LI
commit bc1a39e222197cb9e98ed508f3994662d5d3fc75 Author: Aaron LI Date: Mon Jun 25 17:04:41 2018 +0800 eventhandler: Implement ifnet_link_event The "ifnet_link_event" is triggered by the change of the link state of an interface. Taken-from: FreeBS

git: Move pf.conf.5 and pf.os.5 to share/man/man5

2018-08-08 Thread Aaron LI
commit d27abe81872597163e3d797770ce9aaf71bbb6c7 Author: Aaron LI Date: Tue Jun 26 12:25:07 2018 +0800 Move pf.conf.5 and pf.os.5 to share/man/man5 Summary of changes: share/man/man5/Makefile | 3 ++- {usr.sbin/pfctl => share/man/man5}/pf.conf.5 | 0 {usr.sbin/pf

git: pf: Allow disappearing or not yet existing interfaces for ALTQ

2018-08-08 Thread Aaron LI
commit 0a887f91f9633448c99b9a5b7c6116a0a22d25d6 Author: Aaron LI Date: Sat Jun 16 23:18:20 2018 +0800 pf: Allow disappearing or not yet existing interfaces for ALTQ Make ALTQ cope with disappearing interfaces (particularly common with net/mpd4 and netgraph in general

git: pf: Fix and improve interface group support

2018-08-08 Thread Aaron LI
commit c686757e01dd668abe9817cf3e78f18b4de62be7 Author: Aaron LI Date: Sat Jun 16 22:48:38 2018 +0800 pf: Fix and improve interface group support The old PF code has broken partial support of the interface group. Without this patch, loading the 'pf.ko' module will panic

git: pf: Update pfi_kif and pfi_kif_cmp structs

2018-08-08 Thread Aaron LI
commit 3bbcdcc2594c6b74fb7c860ceebf1713b0ad56ef Author: Aaron LI Date: Thu Jun 21 08:59:47 2018 +0800 pf: Update pfi_kif and pfi_kif_cmp structs For struct "pfi_kif", add "pfik_name" entry while remove multiple obsolete entries and macros. Rename "p

git: net: Implement interface group support

2018-08-08 Thread Aaron LI
commit 233c85704a96468c162480f32a6e092b81b0cdaf Author: Aaron LI Date: Sat Jun 16 22:25:31 2018 +0800 net: Implement interface group support The network interface group (aka ifgroup) functionality is currently only used by the PF (still needs patch to make PF use the ifgroup

git: ifconfig(8): Add group support

2018-08-08 Thread Aaron LI
commit d4024308578796b864d264d08e7cd14719d0c00a Author: Aaron LI Date: Sat Jun 16 23:01:21 2018 +0800 ifconfig(8): Add group support Obtained from FreeBSD, with some minor changes. Summary of changes: sbin/ifconfig/Makefile | 1 + sbin/ifconfig/ifconfig.8 | 22

git: if_pflog: Explicitly depend on "pf" and various cleanups

2018-08-08 Thread Aaron LI
commit a6ccd68b08eff10c57551f8fe92f39a5b8ae6c48 Author: Aaron LI Date: Thu Jun 21 09:31:44 2018 +0800 if_pflog: Explicitly depend on "pf" and various cleanups * Explicitly depend on the "pf" module to make sure it is initialized later than

git: if_pfsync: Depend on "pf" module and some cleanups

2018-08-08 Thread Aaron LI
commit c8f430ba934ae95fab35e5ea90b7092b6805837e Author: Aaron LI Date: Thu Jun 21 09:40:05 2018 +0800 if_pfsync: Depend on "pf" module and some cleanups * Explicitly depend on the "pf" module to make sure it is initialized later. * Remove the u

git: pf.conf.5: Describe the use of interface group

2018-08-08 Thread Aaron LI
commit 5304134c9c97d9ff22e6c3ddc4dde7ccb3895cde Author: Aaron LI Date: Tue Jun 26 13:42:42 2018 +0800 pf.conf.5: Describe the use of interface group Add the description on interface group, which is supported by DragonFly BSD's PF now. Meanwhile, bring in many small

git: net: Tweak some styles and comments

2018-08-08 Thread Aaron LI
commit 2949c680adb831996c4c170affac4f493c3de188 Author: Aaron LI Date: Thu Jun 21 13:56:00 2018 +0800 net: Tweak some styles and comments Summary of changes: sys/net/if.c | 13 +++-- sys/net/if_var.h | 32 +++- sys/net/pf/pf_if.c

git: if_loop: Use ifc->ifc_name and minor cleanups

2018-08-08 Thread Aaron LI
commit 426d6ad04af3385f289cad4f7b0a68148573b0e5 Author: Aaron LI Date: Thu Jun 21 13:49:15 2018 +0800 if_loop: Use ifc->ifc_name and minor cleanups * Use "ifc->ifc_name" instead of explicit "lo". * Minor style updates. Summary of change

git: if_clone: Add cloned interface to the group of its device name

2018-08-08 Thread Aaron LI
commit 5e983a2e81a369a995ee9cb7d8bcecf766990863 Author: Aaron LI Date: Thu Jun 21 14:40:31 2018 +0800 if_clone: Add cloned interface to the group of its device name When a new interface is cloned, add it to the group of its device name, e.g., cloned interfaces tapX

git: if_clone: Remove useless code wrongly added in 84cb91c376f

2018-08-08 Thread Aaron LI
commit 1e4b15c7af1048818778718cff71b98ff6cf252b Author: Aaron LI Date: Mon Aug 6 00:09:53 2018 +0800 if_clone: Remove useless code wrongly added in 84cb91c376f The code was inteded to obtain the created interface and add an interface group for it, which is a work in progress

git: if_clone: Refactor out if_clone_{alloc,free}_unit() functions

2018-08-08 Thread Aaron LI
commit 9ad42ca200d2153e8f3d9b86928684884d283da3 Author: Aaron LI Date: Mon Aug 6 00:10:54 2018 +0800 if_clone: Refactor out if_clone_{alloc,free}_unit() functions Refactor out if_clone_{alloc,free}_unit() functions from if_clone_{create,destroy}() functions. Summary

git: if_clone: Check cloner name to avoid duplicate in if_clone_attach()

2018-08-08 Thread Aaron LI
commit 595dc8f18c44a1d14a2b0b9b6ba2485cee04d3b5 Author: Aaron LI Date: Mon Aug 6 00:34:25 2018 +0800 if_clone: Check cloner name to avoid duplicate in if_clone_attach() Change if_clone_attach() to check the cloner name instead of the pointer to avoid duplicate, also

git: if_clone: Refactor out if_clone_createif() function

2018-08-08 Thread Aaron LI
commit 1047b69ec58e788e95845d6a577152a68e9d6601 Author: Aaron LI Date: Mon Aug 6 15:36:41 2018 +0800 if_clone: Refactor out if_clone_createif() function The new if_clone_createif() function will create a clone interface with the given cloner and unit. Summary of changes

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Aaron LI
On Fri, 20 Jul 2018 09:40:21 +0800 Sepherosa Ziehau wrote: > Most of the physical drivers are ethernet ones, so they need arpcom; > please do w/ care. Sure, I have to understand the drivers more before really touching them. > I am not quite sure why we want to use if_alloc() in the first

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Aaron LI
19 AM, Aaron LI wrote: > > On Fri, 20 Jul 2018 10:43:16 +0800 > > Sepherosa Ziehau wrote: > > > >> On Fri, Jul 20, 2018 at 10:19 AM, Aaron LI wrote: > >> > On Fri, 20 Jul 2018 09:40:21 +0800 > >> > Sepherosa Ziehau wrote: > >> &g

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Aaron LI
On Fri, 20 Jul 2018 10:43:16 +0800 Sepherosa Ziehau wrote: > On Fri, Jul 20, 2018 at 10:19 AM, Aaron LI wrote: > > On Fri, 20 Jul 2018 09:40:21 +0800 > > Sepherosa Ziehau wrote: > > > >> I am not quite sure why we want to use if_alloc() in the first place

Re: git: if_tun: Use pointer to ifnet in tun_softc struct

2018-07-19 Thread Aaron LI
On Fri, 20 Jul 2018 09:09:07 +0800 Sepherosa Ziehau wrote: > Just panic if_com_alloc[type]() fails. > Ok, I'll do it. I'll also look at the drivers to make them use if_alloc() and if_free() when appropriate. Cheers, -- Aaron pgppTtS70LbYz.pgp Description: OpenPGP digital signature

git: if_tap: Destroy the autoclone device when unload module

2018-07-17 Thread Aaron LI
commit a77c4ded301e67d4185b9228fbcb26ba74c09b55 Author: Aaron LI Date: Sun Jul 8 12:30:55 2018 +0800 if_tap: Destroy the autoclone device when unload module Use destroy_autoclone_dev(), which replaces both devfs_clone_handler_del() and devfs_clone_bitmap_uninit(), to destroy

git: if_tap: Add read-only sysctl net.link.tap.refcnt

2018-07-17 Thread Aaron LI
commit f6efdc20c8dd2bfbdb1f8d88dd5154c4a1846131 Author: Aaron LI Date: Sun Jul 8 10:05:31 2018 +0800 if_tap: Add read-only sysctl net.link.tap.refcnt Expose the number of opened devices as a read-only sysctl: net.link.tap.refcnt. Improve the debug messages

git: if_tap: Remove the broken vmnet support

2018-07-17 Thread Aaron LI
commit ad592396e62fe7ef868d5cf3111fb93ce3020f94 Author: Aaron LI Date: Fri Jul 13 13:04:35 2018 +0800 if_tap: Remove the broken vmnet support The vmnet feature provided by tap(4) was intended to be used by the VMWare port that runs as the server side to communicate with its

git: if_tap: Update tap.4 man page to match the code

2018-07-17 Thread Aaron LI
commit f892bb77a871d61424d8de69d00ff4989f595f16 Author: Aaron LI Date: Mon Jul 9 18:53:42 2018 +0800 if_tap: Update tap.4 man page to match the code Remove the description on FIONBIO ioctl since ours doesn't support it. Mainly taken from FreeBSD, with some improvements

git: if_tap: Return error instead of system panic

2018-07-17 Thread Aaron LI
commit fba81a1c19f7e2d4ab3b6a9c9c74a3f99b21b5b5 Author: Aaron LI Date: Sun Jul 8 16:37:24 2018 +0800 if_tap: Return error instead of system panic Return error when failed to create/find the device and to allocate the interface struct, instead of system panic. Summary

  1   2   3   4   5   6   7   >