Check whether libusb_init() succeeds, and give up if it doesn't.

libusb_init() isn't guaranteed to succeed; it returns a (presumably)
non-zero error on failure.  If it doesn't return 0, just give up - we
presumably don't have a valid libusb_context pointer, which is probably
what's causing crashes when we call libusb_get_device_list() on a system
with no usbfs mounted.

This fixes bug 3554749 in the tracker, and a bunch of upstream bugs.
Add an entry for the CAN-USB crash fix.
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/libpcap
Only add VLAN tags for Ethernet.

The code to insert VLAN tags was assuming Ethernet packets; that's not
the case, for example, if you're capturing on the "any" device, as the
packet headers aren't Ethernet headers.  Have a flag in the pcap
structure to indicate whether to check for and add VLAN tags, and set it
only if we're using PF_PACKET sockets, we're getting Ethernet headers,
and, if we're using the memory-mapped capture mechanism, it's not
version 1.

This should fix SourceForge bug 3525828.
Handle VLAN tags in cooked mode.

Use Jakub Zawadzki's changes for that, but put the VLAN tag offset into
the pcap structure and calculate it at activation time.
Updates for the VLAN tag fix.

Add it to the list for a (future) 1.3.1 release, and add Jakub Zawadzki
to the credits (he also did the nflog/netfilter/nfqueue support).
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/libpcap
experimental patch from Jakub Zawadzki <darkjames-ws@darkjames.pl>
added missing ( to pcap-canusb-linux.h
Replaced deprecated function call in pcap-bpf.c

Changed bzero() to memset(), since bzero is deprecated, and memset is
ISO/ANSI/Posix compliant.
Add sanity checking for malloc, etc

This update adds sanity checking to malloc requests and replaces
deprecated bzero() function calls with memset() which is ISO/ANSI/Posix
compliant
Changed Credits

Added Bill Parker to credits (assuming patch files are merged) :)
added note about Itojun Award
Check for both EOPNOTSUPP and EINVAL after SIOCETHTOOL ioctl.

As reported by Dmitry Kunilov, at least some drivers return EINVAL
rather than EOPNOTSUPP for the SIOCETHTOOL ioctl, so check for both of
them.
Support what IPv6 stuff we can without IPv6 address resolution support.

Make the INET6-only code just be code that depends on having
getaddrinfo(), as per a complaint that, on a machine that either doesn't
have getaddrinfo() or doesn't have INET6 enabled, a filter

    dst host 127.0.0.1 and (icmp or icmp6 or ((tcp or udp or sctp) and (src
        host 127.0.0.1)))

Not having a full IPv6 stack shouldn't keep you from, for example,
having a filter that just checks the packet type field for IPv6 or that
looks at the protocol field in the IPv6 header.  You can't check for
IPv6 *hosts* (although we could perhaps allow them to be specified
numerically).
Use prototype syntax in function definitions.

Use prototype syntax in function definitions, not just function
declarations.  This means that some forward declarations are no longer
necessary; remove them.
PROC instruction and filter_function support
missed the proc in scanner.l
why I have to do this ... why ??????

Signed-off-by: Nuno Martins <nuno.martins@caixamagica.pt>
bpf_filter stuff

Signed-off-by: Nuno Martins <nuno.martins@caixamagica.pt>