Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Packet rate limiting

From: Aaron Turner <aturner(at)pobox.com>
Date: Sun Jul 13 2003 - 14:25:59 EDT

On Sun, Jul 13, 2003 at 09:20:52AM +0200, alessandro salvatori wrote:
> On Sat, 12 Jul 2003 18:32:27 -0700

Heh... yeah, got too much sun yesterday :)

> buffer you still have, isn't it? however in libnet it's us who decide

Right. What I'm saying is that SO_SNDBUF has different meanings depending on the type of socket you're working with. I personally can't find any documentation in manpages or Stevens which documents how a RAW or PACKET socket handles it. I can only guess that works simular to a UDP socket which like a RAW/PACKET socket is connectionless and has no window size.

Setting the SO_SNDBUF for a UDP socket has the effect of limiting the maximum datagram size you can send on that socket. (Stevens, UNPv1 Section 2.9) Technically, UDP doesn't even have a socket send buffer, but of course there is a kernel packet queue where packets are stored until they are sent. I suspect that RAW/PACKET sockets are implimented in a simular fasion.

Out of curiosity, have you tested the code? What effect (if any) has it had? That would be the real test.

Do you need help?X

Regards,
Aaron

-- 
Aaron Turner   
http://synfin.net/aturner
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety. -- Benjamin Franklin
All emails are PGP signed; a lack of a signature indicates a forgery.

  • application/pgp-signature attachment: stored
Received on Sun Jul 13 14:36:06 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