Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Packet rate limiting

From: Matt Bing <mbing(at)nfr.net>
Date: Mon Jul 14 2003 - 19:13:07 EDT

Just catching up on this thread ..

alessandro salvatori said:
> if you set the send buffer to zero as in the patch i submitted today it

I can't find any definitive docs on the subject, but I'm looking at the BSD and Linux kernel code (obsd-current and Linux 2.4.9 for those watching at home) and this behavior just doesn't seem to be true. In fact, it'd be detrimental to performance. Linux has a SO_PRIORITY socket option and there's altq, but I know of no standard socket semantics for blocking on output. Can you please cite a reference?

If you're looking for rate or packet timing routines, you can be quite accurate with creative juggling of a few timevals. As aaron & jose have mentioned, check out do_sleep() in tcpreplay. It's under a BSD license so please, "redistribute and use in source or binary form" :)

-- 
Matt Bing
NFR Security
Rapid Response Team

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Mon Jul 14 19:31:24 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library