Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2004 11:02:33 -0400
From:      Tom Parquette <tparquet@twcny.rr.com>
To:        Matin Tamizi <matin@umd.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to drop a packet
Message-ID:  <40F3F989.5020604@twcny.rr.com>
In-Reply-To: <1089730314.92bcbe00matin@umd.edu>
References:  <1089730314.92bcbe00matin@umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Matin Tamizi wrote:
> I'm using a FreeBSD box as a router in a test network.  For the tests that I am running, I need to be able to drop random packets and observe the effects (responsiveness).
> 
> What utilities in FreeBSD or C will allow me to perform the function of dropping a random packet?
> 
> Thank you,
> Matin
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
I've never used it but you might want to look at DUMMYNET.  From the man 
page (man dummynet):


DUMMYNET(4)            FreeBSD Kernel Interfaces Manual

NAME
      dummynet -- traffic shaper, bandwidth manager and delay emulator

DESCRIPTION
      The dummynet system facility permits the control of traffic going 
through
      the various network interfaces, by applying bandwidth and queue 
size lim-
      itations, implementing different scheduling and queue management poli-
      cies, and emulating delays and losses.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40F3F989.5020604>