7485684f | 03-Mar-2024 |
Aaron LI <aly@aaronly.me> |
Whitespace cleanups |
cfb5793b | 23-Mar-2024 |
Aaron LI <aly@aaronly.me> |
mount_cd9660(8): Simplify and clean up set_charset()
Simplify set_charset(), partly according to mount_ntfs(8).
Meanwhile, clean up the whitespace styles. |
7764eb66 | 08-Mar-2024 |
Ricardo Branco <rbranco@suse.de> |
cd9660: Add support for mask,dirmask,uid,gid options
The updates to mount_cd9660(8) are basically taken from mount_msdos(8).
GitHub PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/23 See also
cd9660: Add support for mask,dirmask,uid,gid options
The updates to mount_cd9660(8) are basically taken from mount_msdos(8).
GitHub PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/23 See also: - https://github.com/freebsd/freebsd-src/pull/982 - https://github.com/NetBSD/src/pull/29
show more ...
|
ce0bf054 | 10-Mar-2024 |
Ricardo Branco <rbranco@suse.de> |
umount(8): Add -d option to detach vn(4) devices
The '-d' option tells umount(8) to detach the underlying vn(4) device if the filesystem was mounted from it. Note that vn(4) is a virtual disk and c
umount(8): Add -d option to detach vn(4) devices
The '-d' option tells umount(8) to detach the underlying vn(4) device if the filesystem was mounted from it. Note that vn(4) is a virtual disk and can provides multiple filesystems, so the vn(4) detaching can only succeed when all the filesystems are umounted.
For example: $ vnconfig -c vn dfly.img vn4 $ mount_msdos /dev/vn4s1 /mnt/dfly/boot $ mount_ufs /dev/vn4s2a /mnt/dfly/root $ umount -d /mnt/dfly/boot umount: VNIOCDETACH: /dev/vn4: Device busy umount: detach of /dev/vn4s1 failed $ umount -d /mnt/dfly/root (now vn4 is detached)
A similar option exists in Linux's and FreeBSD's umount(8).
GitHub PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/24 See Also: https://github.com/freebsd/freebsd-src/pull/972
show more ...
|
88816642 | 05-Mar-2024 |
Aaron LI <aly@aaronly.me> |
md5(1): Further cleanup the code a bit
No functional changes. |
2d52e8a3 | 05-Mar-2024 |
Aaron LI <aly@aaronly.me> |
md5(1): Improve the previous commit
Improve digestbig() to further check for read() errors and return NULL in that case.
Add a comment to explain why can't use file size (st_size). |
79549f81 | 03-Mar-2024 |
Ricardo Branco <rbranco@suse.de> |
md5(1): Fix to calculate correct checksum on pseudo filesystems
The file size (st_size) on pseudo filesystems can be zero and meaningless, so ignore it and read until EOF to get the whole contents.
md5(1): Fix to calculate correct checksum on pseudo filesystems
The file size (st_size) on pseudo filesystems can be zero and meaningless, so ignore it and read until EOF to get the whole contents. Now md5(1) is able to calculate the correct checksums for files on pseudo filesystems, like /proc.
show more ...
|
1219dc1d | 05-Mar-2024 |
Aaron LI <aly@aaronly.me> |
md5(1): Minor code tweaks and style cleanups
No functional changes. |
a1d2059d | 04-Mar-2024 |
Aaron LI <aly@aaronly.me> |
ping(8): Add check for negative wait timeout
Meanwhile, fix the error message. |
881f0bf6 | 04-Mar-2024 |
Aaron LI <aly@aaronly.me> |
ping(8): Relax the interval restriction for normal users
The ping interval was restricted to be >= 1 second for normal users to prevent from performing DoS attacks. This restriction was added by Ma
ping(8): Relax the interval restriction for normal users
The ping interval was restricted to be >= 1 second for normal users to prevent from performing DoS attacks. This restriction was added by Matt Dillon in 1998 during the BEST days [0]. It has become less meaningful now. Following the Linux behavior, relax the interval to be >= 2 milliseconds for normal users.
In addition, add a check for negative interval numbers.
[0] https://github.com/freebsd/freebsd-src/commit/526f06b278d9252add168aa18b60242c08771165
Discussed-with: dillon
show more ...
|
d1d720b1 | 04-Mar-2024 |
Aaron LI <aly@aaronly.me> |
ping(8): Allow normal users to specify larger packets
Before this change, only super-user could specify a packet size larger than the default 56 bytes. This restriction was added by Matt Dillon in
ping(8): Allow normal users to specify larger packets
Before this change, only super-user could specify a packet size larger than the default 56 bytes. This restriction was added by Matt Dillon in 1998 during the BEST days [0].
Nowadays, it doesn't make much sense to limit the packet size. In addition, this restriction doesn't exist in ping6(8) and on NetBSD, OpenBSD and Linux.
And one more interesting thing, UMS [1] uses this feature to estimate the client's bandwidth to optimize the streaming experience.
[0] https://github.com/freebsd/freebsd-src/commit/526f06b278d9252add168aa18b60242c08771165 [1] UMS: https://github.com/UniversalMediaServer/UniversalMediaServer
Discussed-with: dillon
show more ...
|
82082fe8 | 20-Feb-2024 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Minor cleanups to ifwg.c
Meanwhile, fix a minor typo in the error message of '-wgpka' command. |
68a422ab | 09-Feb-2024 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Minor code and style cleanups
No functional changes. |
6dc504c3 | 09-Feb-2024 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Change some 'int' variables to 'bool' whenever possible
I'd like to change 'doalias' as well, but it seems to require 3 states, so leave it alone this moment. |
1078bf3c | 09-Feb-2024 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Fix bug in interface address configuration
When the interface name had a length of >= 8, the address configuration would fail with the ENXIO error, i.e., "no such interface".
This bug
ifconfig(8): Fix bug in interface address configuration
When the interface name had a length of >= 8, the address configuration would fail with the ENXIO error, i.e., "no such interface".
This bug was made by me in commit c29ec76. It was caused by the interface was truncated because the destination buffer size was wrongly determined, as I was using sizeof() on a 'void *' pointer instead of the actual interface name buffer.
Fix it by directly using IFNAMSIZ instead of sizeof().
show more ...
|
1671e443 | 07-Dec-2023 |
Aaron LI <aly@aaronly.me> |
wg: Export the internal peer ID to userland for diagnostics
The auto-generated internal peer ID is used in various debug messages, so exporting it to the userland (i.e., ifconfig(8)) can help with t
wg: Export the internal peer ID to userland for diagnostics
The auto-generated internal peer ID is used in various debug messages, so exporting it to the userland (i.e., ifconfig(8)) can help with the diagnostics.
Update ifconfig(8) to print the added peer ID.
show more ...
|
e0a7c07b | 15-Dec-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig.8: Add description for wg(4)
Note that the 'wgcookie' and '-wgcookie' parameters are commented out for the moment, because they're ineffective yet. |
b03c8f13 | 29-Nov-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Show wg(4) private key and PSK if '-k' specified |
ead657e8 | 25-Nov-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig(8): Add WireGuard wg(4) support
Obtained from OpenBSD with significant modifications. |
dff08a87 | 06-Feb-2024 |
Aaron LI <aly@aaronly.me> |
route.8: Some markup improvements |
b272101a | 30-Oct-2023 |
Aaron LI <aly@aaronly.me> |
Various minor whitespace cleanups
Accumulated along the way. |
f9993810 | 27-Dec-2023 |
Sascha Wildner <saw@online.de> |
Fix typos: uknown -> unknown |
20f2a43a | 19-Dec-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig.8: More markup tweaks
The main change is replacing 'Sy' with 'Cm', since those symbols are intended to be given on the command line as arguments. |
dc4cbfb8 | 14-Dec-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig.8: Alphabetically sort the general parameters |
aa7b428d | 14-Dec-2023 |
Aaron LI <aly@aaronly.me> |
ifconfig.8: Remove the legacy and commented eon(5) and OSI stuffs
The eon(5) seems to be related to RFC 986, "which appears to be a rough ISO equivalent of the IPv6 6to4 transition mechanism." [0]
ifconfig.8: Remove the legacy and commented eon(5) and OSI stuffs
The eon(5) seems to be related to RFC 986, "which appears to be a rough ISO equivalent of the IPv6 6to4 transition mechanism." [0]
The "nsellength" thing seems to be related to OSI networking.
These commented contents has been there since 1996 in FreeBSD codebase. I don't see a point to still keep them, so just remove these legacy stuffs.
[0] https://gnats.netbsd.org/10500
show more ...
|