How does libpcap get a package from the driver?

Can someone point me to a good starting place to find out how libpcap gets its packages from the network driver? I intend to replace the receive function with a quick implementation.

0
source share
1 answer

"Receive Function":

  • standard function for receiving drivers, not different from that used to receive packets and send them to a regular network stack;
  • part of the "packet socket" of the regular network stack.

Intel DPDK, , , DPDK . , libpcap libpcap, DPDK.

Libpcap "" . , ( -, libpcap , , !); libpcap.

libpcap, " " , pcap-snf.c Myricom pcap-dag.c Endace DAG.

, , , tcpdump-workers , ( , , , libpcap, tcpdump, " libpcap", - .)

+3

All Articles