How libpcap receive a packet from the driver?
问题 Can someone please point me to a good starting place to learn how libpcap gets its packets from a network driver? My intend is to replace the receive function with a fast implementation. 回答1: The "receive function" is: the standard driver receive function, no different from what's used to receive packets and hand them to the regular networking stack; the "packet socket" part of the regular networking stack. Some Intel slides on DPDK seem to indicate that DPDK lets user-space code talk more