git: ping(8): Allow normal users to specify larger packets
Aaron LI
aly at crater.dragonflybsd.org
Sun Mar 3 22:15:02 PST 2024
commit d1d720b18acc666a6e32e16d14f4e57c6d4c0314
Author: Aaron LI <aly at aaronly.me>
Date: Mon Mar 4 11:42:48 2024 +0800
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
Summary of changes:
sbin/ping/ping.8 | 3 +--
sbin/ping/ping.c | 12 +++++-------
2 files changed, 6 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d1d720b18acc666a6e32e16d14f4e57c6d4c0314
--
DragonFly BSD source repository
More information about the Commits
mailing list