Use getopt_long().

This requires us to check for it in the configure script and to include
a version of getopt_long() for the benefit of platforms that don't have
it; we pick up the FreeBSD version and tweak it a bit (eliminating some
features specific to the BSD version of getopt_long(), as we want to use
it only in a fashion portable to Linux/*BSD/Solaris/etc.)

We also get rid of the version of getopt() we supply for Windows in
favor of the version of getopt_long() we provide.
Not all platforms we support define AF_INET6.
fix missing/inet_ntop.c again

All tests that should print IPv6-addresses failed since 'INET6' wasn't
set when my missing/inet_ntop.c was compiled. Due to "config.h" was not
included.

Also got rid of 2 warnings:
 Missing/inet_ntop.c:146:23: warning: 'cur.len' may be used
 uninitialized in this function [-Wmaybe-uninitialized]

The tests also failed since the inet_ntop_v6() was returning hex-chars
in upper-case. So this patch returns string in lower-case.
Put in missing getopt_long() files.
It's getopt_long.c, not getopt.c
Define optarg, optind, opterr, and optopt.

That's necessary on Windows, where you're not going to get them defined
by getopt(), and where the ref/def model rather than the common model is
used.
Define optarg, optind, opterr, and optopt.

That's necessary on Windows, where you're not going to get them defined
by getopt().
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Rename our getopt.h to getopt_long.h.

That way, if we *do* have getopt_long(), we don't end up including our
getopt.h rather than the system's getopt.h.
Oops, forgot to fix missing/getopt_long.c to include getopt_long.h.
Split the OSPFv3 header and bodies into separate structures.

Some compilers appear to put some padding before the ospf6_un union, so
the OSPFv3 packets aren't dissected correctly.  Pull the members of
that union into separate structures, and find the pointer to the OSPFv6
body by adding the header length to the pointer to the beginning of the
header.
Don't assume the Perl interpreter is in /usr/bin/perl.

It's not necessarily there on all platforms.  Explicitly invoke the
interpreter to run the TESTonce script; that requires that, when you run
"make check", your path includes the directory in which the Perl
interpreter resides.
Just use #! /usr/bin/env perl.

That's a simpler way to deal with the Perl interpreter not being in
/usr/bin.
Sort options and put in notes for unusable option letters.

Sort the options alphabetically, and put in comments for the options
we're *currently* not using, to note that other versions of tcpdump use
them and that we should only use them for the same purposes.
Added support to print radius attribute CUI

Or Chargeable User Identity, specified in RFC 4372
Update tcpdump-stdinc.h

Put WinPcap's header "bittypes.h" before potentially defining basic types like "uint8_t". Define EAFNOSUPPORT unless defined in system's <errno.h>. The local Win32/Include/errno.h is gone.
Delete errno.h

Don't let this local errno.h mess with the system's <errno.h>. Ref. inclusion of <errno.h> in tcpdump-stdinc.h.
Update tcpdump-stdinc.h

Probably safe to assume MSVC has a `<stdint.h>` too.
Update inet_pton.c

Removed <errno.h> here since it's already included in ./tcpdump-stdinc.h. The local 'win32/Include/errno.h' is deleted.
Update TESTonce

Adapt script for Strawberry Perl and possibly other Win32 Perls. The program is windump.exe on Windows.