]> The Tcpdump Group git mirrors - libpcap/commit
In "pcap_read_packet()", always use "handle->buffer + handle->offset" as
authorguy <guy>
Fri, 24 Aug 2001 09:27:14 +0000 (09:27 +0000)
committerguy <guy>
Fri, 24 Aug 2001 09:27:14 +0000 (09:27 +0000)
commit96943e6868ed88b1cfeac5b2562bce5abab961f0
treef0f3334b356c8cf7f1794dcacf851b52ce57a8df
parent8d039ab3b6711605b31530bb7454f86d1d8a55cd
In "pcap_read_packet()", always use "handle->buffer + handle->offset" as
the pointer to the beginning of the link-layer header; never use just
"handle->buffer", as, if "handle->offset" is non-zero (as is the case
with many link-layer types, including Ethernet), "handle->buffer"
doesn't point to the beginning of the link-layer header.
pcap-linux.c