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 - 18:16:01 EDT

sandr8 said:
> please let me know what happens in a BSD socket implementation (m$ windows or *-BSD)

The BSDs, more specifically bpf, directly enqueue link-layer packets to the interface output buffer, whose size is not tweakable at run-time.

Your libnet_toggle_buffered_output() incorrectly assumes the FD is a socket. You might try:

if (getsockopt( ... ) != 0) {

	if (errno == ENOTSOCK)
		// silently return
		return 0;
	else
		...

}
-- 
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 18:34:20 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