lkml.org 
[lkml]   [1999]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIPChains NetLink Device
I am working on some code that reads packets from the netlink device
(IP_FIREWALL_NETLINK) to do some specialized reporting about certain packets.

I was looking at the sample code in fwinterface.c (libfw-0.2) and it looks
like it reads 65535 bytes at a time (and always returns less).

Questions:
Are you guaranteed to only get one packet for one read or
are there sometimes several?

Does a read always return the start of the packet or is there a
possibility that you may start reading in the middle of a packet?

If you don't read packets fast enough, are some discarded?

--
Walter Reed <walt@itrade.net>
Director of Network Operations
InterTrade Systems Corp.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.029 / U:3.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site