Fencepost error.

If an ERF record has 0 'payload' bytes the last extension header will not be counted and the header length will be calculated incorrectly.
Merge pull request #290 from sfd/master

Fencepost error in ERF extension header handling
Point people to the the-tcpdump-group repositories, not the mcr repositories.

We've created a the-tcpdump-group organization on GitHub, and created
repositories for libpcap and tcpdump, owned by them.  Those are now the
"official" GitHub locations for repositories from which to clone or
against which to file issues/pull requests.
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/libpcap
Add DLT_DBUS to the table of link-layer type names
Merge pull request #292 from MichalLabedzki/master

Fix DBus interface

Add DLT_DBUS to the table of link-layer type names.
Linux *AND* D-Bus capture support need the packets_read field.

And, no, not all systems with D-Bus are Linux systems, thankyouverymuch.
fold_op() remove dead case: BPF_NEG
[Linux] add new function linux_check_direction()

We're right now have the same code in two places, split it into new inline
function: linux_check_direction()
Merge pull request #294 from darkjames/cleanup

Cleanup
We need to check whether the D-Bus libraries define dbus_connection_read_write().

It's not sufficient to check whether dbus-1 is installed; we need to
make sure it defines dbus_connection_read_write() (the version on at
least one machine on which I've tried building libpcap doesn't).
Fix configure messages from previous change.
Fix some DLPI checks.

Check for bufmod.h and dlpi_ext.h *regardless* of whether we have
getifaddrs(); they're both needed whether we have it or not.

Put the "if libdlpi exists" calls inside brackets.
Fix some compile warnings/errors.

I guess nobody's using this - Solaris 10 doesn't have libdlpi and
Solaris 11 has BPF, to which we default - but might as well fix it
anyway.
We need dlpisubs.c with DLPI even if we have getifaddrs().
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.
fold_op() remove dead case: BPF_NEG
Note that fold_op() is only for binary operators.
[Linux] add new function linux_check_direction()

We're right now have the same code in two places, split it into new inline
function: linux_check_direction()

Merged-with-my-pcap_t-changes-by: Guy Harris <guy@alum.mit.edu>
Add DLT_DBUS to the table of link-layer type names