git: ping(8): Relax the interval restriction for normal users

Aaron LI aly at crater.dragonflybsd.org
Sun Mar 3 22:15:02 PST 2024


commit 881f0bf60bdb456a2090ac5fa1aff751daed1d02
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Mar 4 12:08:27 2024 +0800

    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

Summary of changes:
 sbin/ping/ping.8 |  4 ++--
 sbin/ping/ping.c | 15 ++++++++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/881f0bf60bdb456a2090ac5fa1aff751daed1d02


-- 
DragonFly BSD source repository


More information about the Commits mailing list