git: ping(8): Allow normal users to specify larger packets

Aaron LI aly at
Sun Mar 3 22:15:02 PST 2024

commit d1d720b18acc666a6e32e16d14f4e57c6d4c0314
Author: Aaron LI <aly at>
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.
    [1] UMS:
    Discussed-with: dillon

Summary of changes:
 sbin/ping/ping.8 |  3 +--
 sbin/ping/ping.c | 12 +++++-------
 2 files changed, 6 insertions(+), 9 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list