]> The Tcpdump Group git mirrors - libpcap/commit
Move platform-dependent pcap_t data out of the pcap_t structure.
authorGuy Harris <[email protected]>
Mon, 6 May 2013 21:16:14 +0000 (14:16 -0700)
committerGuy Harris <[email protected]>
Mon, 6 May 2013 21:16:14 +0000 (14:16 -0700)
commite9e96bbc3efd45ba6d1dbb097bc09845ba54c5d6
tree88c0719044762ff35a1adedafcea69ab4dc005b5
parent5c18aa3e68e7d54712102e359efe4567fa81eca8
Move platform-dependent pcap_t data out of the pcap_t structure.

Put the private data right after the pcap_t structure, with a pointer to
it in the pcap_t.

The initial goal is to allow new pcap modules to be added without having
to hack pcap-int.h.

In the longer term, we may want to freeze the pcap_t structure, except
possibly for adding new method pointers at the end, and provide an ABI
for adding modules.

We also put the stuff used by the read path at the beginning of the
pcap_t structure, to try to keep it on the same set of cache lines.
30 files changed:
dlpisubs.c
dlpisubs.h
gencode.c
pcap-bpf.c
pcap-bt-linux.c
pcap-can-linux.c
pcap-canusb-linux.c
pcap-dag.c
pcap-dbus.c
pcap-dlpi.c
pcap-dos.c
pcap-int.h
pcap-libdlpi.c
pcap-linux.c
pcap-netfilter-linux.c
pcap-nit.c
pcap-pf.c
pcap-septel.c
pcap-sita.c
pcap-snf.c
pcap-snit.c
pcap-snoop.c
pcap-usb-linux.c
pcap-win32.c
pcap.c
savefile.c
sf-pcap-ng.c
sf-pcap-ng.h
sf-pcap.c
sf-pcap.h