Messages in this thread | | | Date | Tue, 11 May 1999 11:10:12 -0700 | From | Walter Reed <> | Subject | IPChains 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/
| |