when a dummynet queue drops UDP packets, it returns an ENOBUF error on the write(), so you can at least retry the transmission yourself after some time.
Unfortunately there is not any mechanism in place to make an UDP write() blocking. cheers luigi On Wed, May 22, 2002 at 05:42:56PM -0400, John Baldwin wrote: > I'm curious: what would be the best method of implementing a bandwith limiter > on an interface that is lossless? I'm having to limit UDP with no back channel, > so I can't reply on TCP retransmits to make up for packets being dropped. > DUMMYNET drops packets that overflow it's queue size so it doesn't seem to work > out of the box. Ideally, I would like applications sending packets to the > interface to block when the outgoing queue is full. One idea I thought > about is trying to use netgraph to implement a network interface that does > this limiting and then hands the data off to a real network interface that > it is attached to, but I also don't want to have to add netgraph support to > a bunch of network drivers to get this to work either. > > Suggestions? > > -- > > John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message