]> The Tcpdump Group git mirrors - libpcap/commit
For Linux, add to the pcap_md structure a pointer to a memory-mapped
authorGuy Harris <[email protected]>
Sat, 11 Jul 2009 18:59:04 +0000 (11:59 -0700)
committerGuy Harris <[email protected]>
Sat, 11 Jul 2009 18:59:04 +0000 (11:59 -0700)
commit3efa66617444114280a9daa625d910a897867c15
treeb1203067ae562e47139c0ea697d085cee74ed583
parent6f7074d4b01554ff275223c12244d5db9d2be75f
For Linux, add to the pcap_md structure a pointer to a memory-mapped
region and the size of the region; use that pointer rather than the bp
or buffer member (that means we don't have to worry about
pcap_cleanup_live_common() attempting to free that buffer).  Use the
saved size when unmapping the memory-mapped region.

Use that for Linux USB memory-mapped access as well - and unmap the
memory-mapped region when we close the pcap_t, because we *do* have to
unmap it.
pcap-int.h
pcap-linux.c
pcap-usb-linux.c