|
|||||||||||
|
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:
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.
Regards,
-- Aaron Turner
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT |
||||||||||
|
|||||||||||