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: 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). This

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

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: 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 will

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

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: 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: FreeBSD

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

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

2018-08-08 Thread Aaron LI
rotection 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: > >

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 incorrec

git: if_tap: Disallow to destroy an opened device

2018-08-30 Thread Aaron LI
commit ceddbcf65305e80699502a2797f0ef944f53b3a7 Author: Aaron LI Date: Thu Aug 30 21:13:27 2018 +0800 if_tap: Disallow to destroy an opened device When a tap device (created via 'ifconfig') is opened, disallow to destroy it (e.g., ifconfig destroy). Otherwis

git: if_tun: Disallow to destroy an opened device

2018-08-30 Thread Aaron LI
commit 252be4c402afa5c4e35b827f272e3c52e8dbe46f Author: Aaron LI Date: Thu Aug 30 21:36:07 2018 +0800 if_tun: Disallow to destroy an opened device When a tun device (created via 'ifconfig') is opened, disallow to destroy it (e.g., ifconfig destroy). Otherwis

git: DragonFly_RELEASE_5_2 if_tap: Disallow to destroy an opened device

2018-08-30 Thread Aaron LI
commit 07f09928e5993fbd5dcc7b98b37cdb429dfe225f Author: Aaron LI Date: Thu Aug 30 21:13:27 2018 +0800 if_tap: Disallow to destroy an opened device When a tap device (created via 'ifconfig') is opened, disallow to destroy it (e.g., ifconfig destroy). Otherwis

git: DragonFly_RELEASE_5_2 kernel: unbreak buildkernel

2018-09-03 Thread Aaron LI
commit a6932e2f66cf5f66aa1e202a504b8d26f96b43c7 Author: Markus Pfeiffer Date: Mon Sep 3 23:29:36 2018 + kernel: unbreak buildkernel Summary of changes: sys/kern/vfs_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a6

git: dumpon(8): Add "dumpoff" variant to be "dumpon off"

2018-09-22 Thread Aaron LI
commit 03f2fdd26fee309abfe7c8bdf799f8d35a4e18bf Author: Aaron LI Date: Sat Sep 22 20:57:52 2018 +0800 dumpon(8): Add "dumpoff" variant to be "dumpon off" "dumpon off" doesn't seem to be a good command, so let's add the "dumpo

git: dumpon(8): Make error messages clearer

2018-09-22 Thread Aaron LI
commit bfbb599bba9fbf988628bb6dd678cd03d68dfda5 Author: Aaron LI Date: Sun Sep 23 12:26:33 2018 +0800 dumpon(8): Make error messages clearer Before this patch, when a dump device is already configured, dumpon(8) only complains with 'Device busy', which isn'

git: rc.d/pflog - Be quiet when check if modules are loaded

2018-09-25 Thread Aaron LI
commit 8808a6c5e34716370db5a2afe03ce58f1ffa9ad4 Author: Aaron LI Date: Tue Sep 25 20:30:58 2018 +0800 rc.d/pflog - Be quiet when check if modules are loaded This rc script was missed from tuxillo's commit (0dfdc028b39). Summary of changes: etc/rc.d/pflog | 2 +- 1 file ch

git: Bump __DragonFly_version for adding wait6() and waitid()

2018-09-30 Thread Aaron LI
commit c229b0c534c51c6a1980f9d4bfb2592e5e339bd7 Author: Aaron LI Date: Mon Oct 1 08:51:28 2018 +0800 Bump __DragonFly_version for adding wait6() and waitid() Summary of changes: sys/sys/param.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) http://gitweb.dragonflybsd.org

git: vendor/OPENRESOLV created Import openresolv 3.9.0

2018-10-19 Thread Aaron LI
at 8382a10edee524c5793769fd7086b846ed950391 (commit) -- DragonFly BSD source repository

git: openresolv: Add READMEs

2018-10-19 Thread Aaron LI
commit a91130d69be36543520c82dcf386a8c688f882b3 Author: Aaron LI Date: Fri Oct 19 01:11:18 2018 +0800 openresolv: Add READMEs Summary of changes: contrib/openresolv/README.DELETED | 4 contrib/openresolv/README.DRAGONFLY | 17 + 2 files changed, 21 insertions

git: openresolv: Bind to system as resolvconf(8)

2018-10-19 Thread Aaron LI
commit d9a1074aa25d6a25c54b0a66a13be9aa9bd8757d Author: Aaron LI Date: Fri Oct 19 01:23:51 2018 +0800 openresolv: Bind to system as resolvconf(8) The resolvconf(8) will be used by dhcpcd(8), which will be imported later to provide out-of-box IPv6 DHCP support, replacing the

git: arp(8): Add option -i to limit operations to one interface

2018-10-25 Thread Aaron LI
commit d16b92b101f8d2d6ac5ae45b2243471813a44a57 Author: Aaron LI Date: Thu Oct 25 13:16:47 2018 +0800 arp(8): Add option -i to limit operations to one interface This allows to limit the scope of operation to the ARP entries on a particular interface, which should be useful

git: Sync /etc/pccard_ether with FreeBSD

2018-10-25 Thread Aaron LI
commit cc41928392d83f4c9800219f797fd4ce87fbb295 Author: Aaron LI Date: Thu Oct 25 13:48:56 2018 +0800 Sync /etc/pccard_ether with FreeBSD Our original 'pccard_ether' became unnecessarily complex as a big part of the work is already implemented in 'network

git: rc.conf.5: Remove the obsolete reference to named(8)

2018-10-25 Thread Aaron LI
commit 2686b94bdc3d720030ab80a72fc04f24df11d200 Author: Aaron LI Date: Thu Oct 25 20:07:18 2018 +0800 rc.conf.5: Remove the obsolete reference to named(8) Summary of changes: share/man/man5/rc.conf.5 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) http

Re: git: build - refactor rescue and initrd handling

2018-10-31 Thread Aaron LI
On Wed, 31 Oct 2018 13:55:26 +0300 Gennady Proskurin wrote: > This breaks buildworld for ordinary non-root user due to vnconfig > calls. Yes, someone has already mentioned this issue in IRC, and I have thought a bit about it. I'll fix it in the following days. Basically, need to adjust 'buildi

git: net/if: Call if_ioctl() if the protocol didn't handle the ioctl

2018-11-04 Thread Aaron LI
commit baf84f0ae5e25ae2d46fba3c9aafca24ba8e6074 Author: Aaron LI Date: Sun Nov 4 17:55:53 2018 +0800 net/if: Call if_ioctl() if the protocol didn't handle the ioctl This allows for a non-interface socket (like AF_LOCAL which ifconfig(8) now uses since c

git: libc/mktemp: Pass flags to open()

2018-11-05 Thread Aaron LI
commit 1fa9cec2ee4817e109c7359b2ee77108c299a2cd Author: Simon Arlott Date: Sat Nov 3 20:08:07 2018 + libc/mktemp: Pass flags to open() The flags from the functions that call _gettemp() are never used. They should be included in the call to open(), otherwise features

git: rc.subr: Add list_vars() function

2018-11-05 Thread Aaron LI
commit 53085f893f0d9438dbaf403f947403c5e6c9665c Author: Aaron LI Date: Tue Nov 6 04:31:38 2018 +0800 rc.subr: Add list_vars() function Taken-from: FreeBSD Summary of changes: etc/rc.subr | 13 + 1 file changed, 13 insertions(+) http://gitweb.dragonflybsd.org

git: rc.d: Add ip6addrctl (enabled by default with policy AUTO)

2018-11-05 Thread Aaron LI
commit 03137732640d591d74a270e2e62930e966c5145f Author: Aaron LI Date: Tue Nov 6 04:25:17 2018 +0800 rc.d: Add ip6addrctl (enabled by default with policy AUTO) Bring in the ip6addrctl rc script from FreeBSD. It is enabled by default with policy "AUTO", so th

git: Bring in ip6addrctl(8) from FreeBSD

2018-11-05 Thread Aaron LI
commit b3e110e968baf5f9dacf3f02d2dd6b8aa6c12d4e Author: Aaron LI Date: Tue Nov 6 03:22:15 2018 +0800 Bring in ip6addrctl(8) from FreeBSD The ip6addrctl(8) manages the policy table of source and destination address selection for ougoing IPv4 and IPv6 packets. For

git: DragonFly_RELEASE_5_2 mkinitrd(8): Integrate the default configurations

2018-11-07 Thread Aaron LI
commit bc10f98c77eab35ba0f140ba1a2cf0b029610583 Author: Aaron LI Date: Wed Nov 7 19:41:29 2018 +0800 mkinitrd(8): Integrate the default configurations Integrate the default configurations in the tool itself, and thus remove the config file (/etc/defaults/mkinitrd.conf

git: rc.conf.5: Document ip6addrctl_{policy,verbose} explicitly

2018-11-07 Thread Aaron LI
commit d1dbb0fb863887795f40c24a330f0e71b9c89b72 Author: Aaron LI Date: Thu Nov 8 09:13:04 2018 +0800 rc.conf.5: Document ip6addrctl_{policy,verbose} explicitly Suggested-by: swildner Summary of changes: share/man/man5/rc.conf.5 | 36 +++- 1 file

git: terminfo: Build and install tmux and tmux-256color

2018-11-09 Thread Aaron LI
commit efdac92a45a44cebe37d7244375fe8dda64a1b33 Author: Aaron LI Date: Sat Nov 10 09:08:23 2018 +0800 terminfo: Build and install tmux and tmux-256color Summary of changes: share/terminfo/Makefile.entries | 2 ++ 1 file changed, 2 insertions(+) http://gitweb.dragonflybsd.org

git: vendor/DHCPCD dhcpcd: Add READMEs

2018-11-14 Thread Aaron LI
commit e2c425e0e113cf4fac81015c3baf71b3d2d88d89 Author: Aaron LI Date: Fri Oct 19 14:32:39 2018 +0800 dhcpcd: Add READMEs Summary of changes: contrib/dhcpcd/README.DELETED | 30 ++ contrib/dhcpcd/README.DRAGONFLY | 12 2 files changed, 42

git: vendor/DHCPCD created dhcpcd: Add READMEs

2018-11-14 Thread Aaron LI
at e2c425e0e113cf4fac81015c3baf71b3d2d88d89 (commit) -- DragonFly BSD source repository

git: dhcpcd: Apply local modifications

2018-11-14 Thread Aaron LI
commit 4acb291d71f84cdd3b4115e8a4ef72109792f3fc Author: Aaron LI Date: Fri Oct 19 14:54:55 2018 +0800 dhcpcd: Apply local modifications * The modification to 'src/if.c' makes it can be build with '-Werror=implicit-fallthrough', which is e

git: dhcpcd: Generate src/dhcpcd-embedded.[ch]

2018-11-14 Thread Aaron LI
commit 02b0bc0435c47bb59d7f1a5e3865a7c4630ad31c Author: Aaron LI Date: Fri Oct 19 14:41:10 2018 +0800 dhcpcd: Generate src/dhcpcd-embedded.[ch] $ cd src $ ./genembedc > dhcpcd-embedded.c $ ./genembedh > dhcpcd-embedded.h $ rm genembed[ch] dhcpcd-embedded.[

git: dhcpcd: Add upgrade notes to README.DRAGONFLY

2018-11-14 Thread Aaron LI
commit fb3db81efb507524806d71ed97b18b9a6467fee3 Author: Aaron LI Date: Fri Oct 19 15:34:05 2018 +0800 dhcpcd: Add upgrade notes to README.DRAGONFLY Summary of changes: contrib/dhcpcd/README.DRAGONFLY | 23 +++ 1 file changed, 23 insertions(+) http

git: dhcpcd: Bind to system

2018-11-14 Thread Aaron LI
commit 5d669bfaf21b80b79e46874f480bd4e9d7351cfd Author: Aaron LI Date: Fri Oct 19 15:32:31 2018 +0800 dhcpcd: Bind to system NOTE: This only makes 'dhcpcd' be built and installed, and doesn't affect the existing 'dhclient'. Summary

git: rc.d: Introduce 'dhcp_client' to wrap over dhclient and dhcpcd

2018-11-14 Thread Aaron LI
commit 817cf58581c06bb4ce35e4fa5895d14473c9718b Author: Aaron LI Date: Thu Oct 25 20:25:03 2018 +0800 rc.d: Introduce 'dhcp_client' to wrap over dhclient and dhcpcd The new 'dhcp_client' rc script is a wrapper to start either dhclient(8) or dhcpcd(8) b

git: network.subr: Support IPv6 in dhcpif()

2018-11-14 Thread Aaron LI
commit 329743def50a061489debcd9682983235c8f5b42 Author: Aaron LI Date: Wed Nov 14 17:49:03 2018 +0800 network.subr: Support IPv6 in dhcpif() Extend the 'dhcpif()' to support checking the interface needs DHCP for IPv4-only, IPv6-only or either. The 'dh

git: dhcpcd: Add rc script rc.d/dhcpcd

2018-11-14 Thread Aaron LI
commit 4eba35c8bf34d7dece6d22a2477b99f61a3ddd0b Author: Aaron LI Date: Fri Oct 19 23:28:29 2018 +0800 dhcpcd: Add rc script rc.d/dhcpcd The dhcpcd supports both DHCPv4 and DHCPv6. Summary of changes: etc/defaults/rc.conf | 3 +++ etc/rc.d/Makefile| 2 +- etc/rc.d

git: network.subr: Add ipv6if()

2018-11-14 Thread Aaron LI
commit da4dd5142b3aeee28a624360613a09cc38ec7319 Author: Aaron LI Date: Fri Oct 26 01:05:20 2018 +0800 network.subr: Add ipv6if() This function determines whether the given interface should be configured for IPv6. This function will be used to determine whether to apply

git: network.subr: Support IPv6 in ifconfig_getargs()

2018-11-14 Thread Aaron LI
commit 8cd2e0745d021c52ef70c667710cd638bf76cf3b Author: Aaron LI Date: Thu Oct 25 20:11:28 2018 +0800 network.subr: Support IPv6 in ifconfig_getargs() Update the 'ifconfig_getargs()' to accept the address family option to support the extraction of IPv6 argum

git: rc.d/ip6addrctl: Fix REQUIRE and afexists()

2018-11-15 Thread Aaron LI
commit 21b2a002cbc71afb02226ebae808b0c58a793a7c Author: Aaron LI Date: Fri Nov 16 11:01:28 2018 +0800 rc.d/ip6addrctl: Fix REQUIRE and afexists() * DragonFly doesn't has the 'FILESYSTEMS' rc target. * I forgot to implement the 'afexists()'

Re: git: rc.d: Add ip6addrctl (enabled by default with policy AUTO)

2018-11-15 Thread Aaron LI
Hi Thomas, Thanks for pointing out this issue. I've just fixed it: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/21b2a002cbc71afb02226ebae808b0c58a793a7c Cheers, Aaron On Thu, 15 Nov 2018 19:21:38 +0100 (CET) Thomas Nikolajsen wrote: > > etc/rc.d/ip6addrctl doesn't work, as afexi

git: rc.d/dhcpcd: Fix passing of extra arguments

2018-11-16 Thread Aaron LI
commit 2b2ab49c6324e149b67f42dc7f2ce380e1d0dd32 Author: Aaron LI Date: Sat Nov 17 10:28:22 2018 +0800 rc.d/dhcpcd: Fix passing of extra arguments Before this fix, 'dhcpcd' ignores extra arguments when calling 'run_rc_command()', which causes '/etc

git: rc.d/wpa_supplicant: Prefer the DPorts version for the moment

2018-11-25 Thread Aaron LI
commit d8cf6a8bb651fa37ca9cf97613eaa9618043e3de Author: Aaron LI Date: Sun Nov 25 17:39:41 2018 +0800 rc.d/wpa_supplicant: Prefer the DPorts version for the moment We now also ship the wpa_supplicant from DPorts, which has several important security fixes than the base one

git: DragonFly_RELEASE_5_4 rc.d/wpa_supplicant: Prefer the DPorts version for the moment

2018-11-25 Thread Aaron LI
commit 9234f6027f2e765562c003bd32e2edc3f927e25f Author: Aaron LI Date: Sun Nov 25 17:39:41 2018 +0800 rc.d/wpa_supplicant: Prefer the DPorts version for the moment We now also ship the wpa_supplicant from DPorts, which has several important security fixes than the base one

git: initrd: Rework build and install stages

2018-11-25 Thread Aaron LI
commit bc897c50d49f0df1bf5eea38a4a7d904c2e92795 Author: Aaron LI Date: Sat Nov 24 18:52:03 2018 +0800 initrd: Rework build and install stages * Rewrite the Makefile to provide only the 'all' and 'install' targets. Do not separate the handling of the res

git: Makefile.inc1: Some minor cleanups

2018-11-25 Thread Aaron LI
commit 4af345973b8a7e09ca0364f984adbdbf1ec4ca22 Author: Aaron LI Date: Sat Nov 24 19:09:00 2018 +0800 Makefile.inc1: Some minor cleanups No functional change. Summary of changes: Makefile.inc1 | 64 --- 1 file changed, 44

git: DragonFly_RELEASE_5_4 initrd: Rework build and install stages

2018-11-25 Thread Aaron LI
commit cead61f61bc7ce39559505a3ec74a370c8b28254 Author: Aaron LI Date: Sat Nov 24 18:52:03 2018 +0800 initrd: Rework build and install stages * Rewrite the Makefile to provide only the 'all' and 'install' targets. Do not separate the handling of the res

git: DragonFly_RELEASE_5_4 Makefile.inc1: Some minor cleanups

2018-11-25 Thread Aaron LI
commit 5f61cff38ea151bd5f7c88a8ddc6547f593d3703 Author: Aaron LI Date: Sat Nov 24 19:09:00 2018 +0800 Makefile.inc1: Some minor cleanups No functional change. Summary of changes: Makefile.inc1 | 64 --- 1 file changed, 44

git: initrd: Explicitly say the status when build completes

2018-11-25 Thread Aaron LI
commit 9560d18cc62dd91f76f6c0a6148284006d07a7b9 Author: Aaron LI Date: Mon Nov 26 15:29:56 2018 +0800 initrd: Explicitly say the status when build completes Before this change, the 'all' target that builds the rescue and initrd will end with a '--- obj ---&#

git: DragonFly_RELEASE_5_4 initrd: Explicitly say the status when build completes

2018-11-25 Thread Aaron LI
commit 1b0477a9618412b4c0da82c46d2232ae19c9f0fb Author: Aaron LI Date: Mon Nov 26 15:29:56 2018 +0800 initrd: Explicitly say the status when build completes Before this change, the 'all' target that builds the rescue and initrd will end with a '--- obj ---&#

git: network.subr: Handle DHCP in ipv6_ifconfig_

2018-11-27 Thread Aaron LI
commit d15e512d3b5172c37cc1dae56a265fae383611a8 Author: Aaron LI Date: Wed Nov 28 12:50:44 2018 +0800 network.subr: Handle DHCP in ipv6_ifconfig_ Commit 329743def50a061489debcd9682983235c8f5b42 allows to set 'ipv6_ifconfig_="DHCP"' to tell dhcpcd(8)

git: DragonFly_RELEASE_5_4 network.subr: Handle DHCP in ipv6_ifconfig_

2018-11-27 Thread Aaron LI
commit 715a98c57278aab43347712709e69c3535619a42 Author: Aaron LI Date: Wed Nov 28 12:50:44 2018 +0800 network.subr: Handle DHCP in ipv6_ifconfig_ Commit 329743def50a061489debcd9682983235c8f5b42 allows to set 'ipv6_ifconfig_="DHCP"' to tell dhcpcd(8)

git: ifconfig(8): Add option -n to disable auto module loading

2018-12-08 Thread Aaron LI
commit 13d73250676eae52cdf84768cfcf9c792b81d01b Author: Aaron LI Date: Tue Nov 27 12:05:58 2018 +0800 ifconfig(8): Add option -n to disable auto module loading This option may be used by rc scripts to disable the auto loading of network modules when try to configure/stop a

git: network.subr: Clean up list_net_interfaces()

2018-12-14 Thread Aaron LI
commit 0e387345be5e08113d61156e6d46d1502bfc4987 Author: Aaron LI Date: Tue Dec 11 21:16:25 2018 +0800 network.subr: Clean up list_net_interfaces() The rc.d/netif takes care of DHCP/non-DHCP interfaces appropriately, and thus the interface type filter feature in

git: rc: Let dhcpcd(8) go to background immediately by default

2018-12-14 Thread Aaron LI
commit d7d1b3cdbd66494dc8e032c9869f1ddc57bd1184 Author: Aaron LI Date: Fri Dec 14 22:08:26 2018 +0800 rc: Let dhcpcd(8) go to background immediately by default Set the default value of "dhcpcd_flags" to be "-b", thus don't let dhcpcd(8) block the bo

git: network.subr: Add IPv6 support to ifalias_{up,down}()

2018-12-14 Thread Aaron LI
commit 3b4e0f2a0d60c51f5b7bb893d7e1f0804cb4a697 Author: Aaron LI Date: Wed Dec 12 11:16:05 2018 +0800 network.subr: Add IPv6 support to ifalias_{up,down}() * Factor out the common parts of ifalias_{up,down}() to be ifalias_common(). * Add IPv6 support to ifalias_common

git: rc.d/netif: Rework wlan interface configuration

2018-12-14 Thread Aaron LI
commit 3928a593ab3010edcf0cb7727946eafd6f5cfd40 Author: Aaron LI Date: Wed Dec 12 11:52:24 2018 +0800 rc.d/netif: Rework wlan interface configuration * wlan interfaces are more similar to clonable interfaces rather than vlan interfaces, so move the relevant code from

git: network.subr: Cleanups and minor improvements

2018-12-14 Thread Aaron LI
commit e4b0f1d1aee8ce626258fbcb4684dc67fdf84552 Author: Aaron LI 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 c

git: rc: Use SYSCTL{,_N,_W} variables

2018-12-14 Thread Aaron LI
commit b0a4258dac6a92fa83c26684328e20c7dd4da4e6 Author: Aaron LI Date: Sun Dec 9 10:55:55 2018 +0800 rc: Use SYSCTL{,_N,_W} variables With minor cleanups to IO redirections. Summary of changes: etc/network.subr| 4 ++-- etc/rc.d/devd | 2 +- etc/rc.d

git: network.subr: Properly bring up/down interfaces

2018-12-14 Thread Aaron LI
commit 5ad36ff1bf17fc3ebb85aa68fd9360993939d26d Author: Aaron LI Date: Wed Dec 12 11:29:10 2018 +0800 network.subr: Properly bring up/down interfaces Now that the interface will be properly brought up in ifconfig_up(), clean up the rc.d/wpa_supplicant script. Summary of

git: network.subr: Workaround race between wpa_supplicant and dhcpcd

2018-12-14 Thread Aaron LI
commit e9136cbfc9bca1a07ab401f4e82a641eed0a004c Author: Aaron LI Date: Wed Dec 12 12:06:17 2018 +0800 network.subr: Workaround race between wpa_supplicant and dhcpcd Insert a 1-second delay after starting wpa_supplicant(8) to workaround the race between it and dhcpcd(8

git: Allow optional "inet6" keyword in ipv6_ifconfig_

2018-12-14 Thread Aaron LI
commit 203bea78ba86cb8cc55309fc7412dd14a131471d Author: Aaron LI Date: Wed Dec 12 22:53:00 2018 +0800 Allow optional "inet6" keyword in ipv6_ifconfig_ Summary of changes: etc/network.subr | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git/

git: rc.d/netif: Rename network_* to netif_* for consistency

2018-12-14 Thread Aaron LI
commit ef976ecc47f9d187fcf49badb84bf8e4a2ee4375 Author: Aaron LI Date: Tue Dec 11 21:27:43 2018 +0800 rc.d/netif: Rename network_* to netif_* for consistency Rename network_* subroutines to netif_* for better consistency. Also set the rcvar and add netif_enable=YES to

git: DragonFly_RELEASE_5_4 network.subr: Cleanups and minor improvements

2018-12-17 Thread Aaron LI
commit 6fac7714ee9cf1ecc175f8a6cde9508ba739afbd Author: Aaron LI 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 c

git: DragonFly_RELEASE_5_4 rc: Use SYSCTL{,_N,_W} variables

2018-12-17 Thread Aaron LI
commit 3128f8970b0c0203f87c83200d4d3ec07d9e7377 Author: Aaron LI Date: Sun Dec 9 10:55:55 2018 +0800 rc: Use SYSCTL{,_N,_W} variables With minor cleanups to IO redirections. Summary of changes: etc/network.subr| 4 ++-- etc/rc.d/devd | 2 +- etc/rc.d

git: DragonFly_RELEASE_5_4 network.subr: Workaround race between wpa_supplicant and dhcpcd

2018-12-17 Thread Aaron LI
commit d33b5b477bbcd05cf0fafeb5323a427c80f6d5e9 Author: Aaron LI Date: Wed Dec 12 12:06:17 2018 +0800 network.subr: Workaround race between wpa_supplicant and dhcpcd Insert a 1-second delay after starting wpa_supplicant(8) to workaround the race between it and dhcpcd(8

git: DragonFly_RELEASE_5_4 rc: Let dhcpcd(8) go to background immediately by default

2018-12-17 Thread Aaron LI
commit e779b4dab02e14f465bfdbde4a904fe861ef626a Author: Aaron LI Date: Fri Dec 14 22:08:26 2018 +0800 rc: Let dhcpcd(8) go to background immediately by default Set the default value of "dhcpcd_flags" to be "-b", thus don't let dhcpcd(8) block the bo

git: DragonFly_RELEASE_5_4 Allow optional "inet6" keyword in ipv6_ifconfig_

2018-12-17 Thread Aaron LI
commit 7164fae4cd2854acfcea492d62b4585099c825ca Author: Aaron LI Date: Wed Dec 12 22:53:00 2018 +0800 Allow optional "inet6" keyword in ipv6_ifconfig_ Summary of changes: etc/network.subr | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git/

git: DragonFly_RELEASE_5_4 rc.d/netif: Rename network_* to netif_* for consistency

2018-12-17 Thread Aaron LI
commit 556e28b0119adb92afaeb3bc0f7d20827e95b4dd Author: Aaron LI Date: Tue Dec 11 21:27:43 2018 +0800 rc.d/netif: Rename network_* to netif_* for consistency Rename network_* subroutines to netif_* for better consistency. Also set the rcvar and add netif_enable=YES to

git: DragonFly_RELEASE_5_4 rc.d/netif: Rework wlan interface configuration

2018-12-17 Thread Aaron LI
commit 8bd3047b2ba8a0b26353974c344fb663b789ab98 Author: Aaron LI Date: Wed Dec 12 11:52:24 2018 +0800 rc.d/netif: Rework wlan interface configuration * wlan interfaces are more similar to clonable interfaces rather than vlan interfaces, so move the relevant code from

git: DragonFly_RELEASE_5_4 network.subr: Properly bring up/down interfaces

2018-12-17 Thread Aaron LI
commit 58453939d13ff7f33300c09a65e8eebf92427f46 Author: Aaron LI Date: Wed Dec 12 11:29:10 2018 +0800 network.subr: Properly bring up/down interfaces Now that the interface will be properly brought up in ifconfig_up(), clean up the rc.d/wpa_supplicant script. Summary of

git: DragonFly_RELEASE_5_4 network.subr: Add IPv6 support to ifalias_{up, down}()

2018-12-17 Thread Aaron LI
commit 8cc8b1d918da4d764fac518b8d1fbd20fb0f1f9a Author: Aaron LI Date: Wed Dec 12 11:16:05 2018 +0800 network.subr: Add IPv6 support to ifalias_{up,down}() * Factor out the common parts of ifalias_{up,down}() to be ifalias_common(). * Add IPv6 support to ifalias_common

git: DragonFly_RELEASE_5_4 network.subr: Clean up list_net_interfaces()

2018-12-17 Thread Aaron LI
commit ea97404d72110c93f2f8f2a1e14f8868c6db852a Author: Aaron LI Date: Tue Dec 11 21:16:25 2018 +0800 network.subr: Clean up list_net_interfaces() The rc.d/netif takes care of DHCP/non-DHCP interfaces appropriately, and thus the interface type filter feature in

git: rc.d/sysctl: Rewrite to be more robust and clean

2018-12-19 Thread Aaron LI
commit 87206e7c403a8c39917ab3389bb5c3259b68b501 Author: Aaron LI Date: Thu Dec 13 13:58:27 2018 +0800 rc.d/sysctl: Rewrite to be more robust and clean * Check the validity of the sysctl config and warn about the invalid syntax. A common mistake is that users set

git: rc.d/varsym: Rewrite following rc.d/sysctl

2018-12-19 Thread Aaron LI
commit 5522551ec4fa4ecf42c37ee0065f393e62e25908 Author: Aaron LI Date: Thu Dec 13 13:53:54 2018 +0800 rc.d/varsym: Rewrite following rc.d/sysctl * Rewrite this script following the same logic and style of rc.d/sysctl. The basic syntax is checked before setting it

git: rc.d/mountcritlocal: Clean up

2018-12-19 Thread Aaron LI
commit d2e099c85e99cce273d3f15c4a3837caa7aae5fb Author: Aaron LI Date: Fri Dec 14 22:57:51 2018 +0800 rc.d/mountcritlocal: Clean up Clean the code a bit and fix the style. Summary of changes: etc/rc.d/mountcritlocal | 31 +-- 1 file changed, 13

git: DragonFly_RELEASE_5_4 rc.d/sysctl: Rewrite to be more robust and clean

2018-12-19 Thread Aaron LI
commit 56e2ebc3560094ab6616236cb24576cf0f83ac58 Author: Aaron LI Date: Thu Dec 13 13:58:27 2018 +0800 rc.d/sysctl: Rewrite to be more robust and clean * Check the validity of the sysctl config and warn about the invalid syntax. A common mistake is that users set

git: DragonFly_RELEASE_5_4 rc.d/mountcritlocal: Clean up

2018-12-19 Thread Aaron LI
commit 43ec93a0989ff29ca37c85a0158dcec8debcfe38 Author: Aaron LI Date: Fri Dec 14 22:57:51 2018 +0800 rc.d/mountcritlocal: Clean up Clean the code a bit and fix the style. Summary of changes: etc/rc.d/mountcritlocal | 31 +-- 1 file changed, 13

git: DragonFly_RELEASE_5_4 rc.d/varsym: Rewrite following rc.d/sysctl

2018-12-19 Thread Aaron LI
commit 2cc40610180de307151d8bde19150aa3cb7a7a1e Author: Aaron LI Date: Thu Dec 13 13:53:54 2018 +0800 rc.d/varsym: Rewrite following rc.d/sysctl * Rewrite this script following the same logic and style of rc.d/sysctl. The basic syntax is checked before setting it

git: vkernel.7: Fix a typo and bump date

2018-12-27 Thread Aaron LI
commit f37681ee1f549d55730c32a553fef58bb28e2e82 Author: Aaron LI Date: Thu Dec 27 19:26:36 2018 +0800 vkernel.7: Fix a typo and bump date Summary of changes: share/man/man7/vkernel.7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org

git: getline.3: Note to distinguish between error and EoF

2019-01-16 Thread Aaron LI
commit 45e55a3219a7a8f2adabfdf399af71f059cfc763 Author: Aaron LI Date: Wed Jan 16 16:51:41 2019 +0800 getline.3: Note to distinguish between error and EoF Note that the getline() and getdelim() functions do not distinguish between end-of-file and error, so the callers must

git: fgetln.3: Recommend to use the safer POSIX getline()

2019-01-16 Thread Aaron LI
commit d9c542f8684a0eebe8fc6b137676fe46b62adbca Author: Aaron LI Date: Wed Jan 16 17:00:47 2019 +0800 fgetln.3: Recommend to use the safer POSIX getline() Obtained-from: OpenBSD Summary of changes: lib/libc/stdio/fgetln.3 | 5 + 1 file changed, 5 insertions(+) http

git: fgetln.3: Add the CAVEATS section with an example

2019-01-16 Thread Aaron LI
commit 1f119bc603f4ab8f1b7c9c478b07fe95db70b499 Author: Aaron LI Date: Wed Jan 16 16:57:05 2019 +0800 fgetln.3: Add the CAVEATS section with an example Add the CAVEATS section to warn about the behavior of fgetln(). An example is included to demonstrate how to properly use

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Aaron LI
Quoting Sepherosa Ziehau (2019-02-01 21:33:18) > Please check fix this commit, there are several unexpected effects of > this commit: > - Extra original value printed on the screen, when this script is run. > Before this change, a=`cmd` will not print anything on the screen. > - It looks after or d

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Aaron LI
Quoting Sepherosa Ziehau (2019-02-01 22:21:28) > On Fri, Feb 1, 2019 at 9:59 PM Aaron LI wrote: > > > > Quoting Sepherosa Ziehau (2019-02-01 21:33:18) > > > Please check fix this commit, there are several unexpected effects of > > > this commit: > > > -

git: Fix pkg "-f" flag in the "make upgrade" message

2019-02-03 Thread Aaron LI
commit bc14b951506dea10a49ee271844154972fa1ffa9 Author: Aaron LI Date: Mon Feb 4 13:33:39 2019 +0800 Fix pkg "-f" flag in the "make upgrade" message Summary of changes: Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflyb

git: rc.d/sysctl: Only set a sysctl when give a new value

2019-02-03 Thread Aaron LI
commit dcd3d479354e1d254b02314765c7c397b2c35ea0 Author: Aaron LI Date: Mon Feb 4 13:22:02 2019 +0800 rc.d/sysctl: Only set a sysctl when give a new value For a sysctl, compare the given value with its current value, and only update the value if the new value is different

git: dd(1): Implement GNU's extension of "status" operand

2019-02-14 Thread Aaron LI
commit 739ce91049ab07d70253b3620f65eba5ac171cd8 Author: Aaron LI Date: Thu Feb 14 20:34:21 2019 +0800 dd(1): Implement GNU's extension of "status" operand * status=none: do not print status information * status=noxfer: do not print transfer statistics

git: dd(1): Rework the time interval calculation

2019-02-14 Thread Aaron LI
commit fc98fc71ea79f0e384f90814cb1a90c4e578bd9a Author: Aaron LI Date: Thu Feb 14 21:38:21 2019 +0800 dd(1): Rework the time interval calculation dd(1) uses gettimeofday(2) to compute the throughput statistics. However, gettimeofday returns the system clock, which may jump

<    1   2   3   4   5   6   7   8   >