| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
We may have a directory of test files in the future, and we'd want to
call it "tests", paralleling tcpdump's directory of test files.
|
|
|
|
| |
One less thing that has to be done in autotools and CMake.
|
|
|
|
| |
That lets us use any of them in public declarations, if we ever need to.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Take the set of tests in the test programs that check compiler and
version to decide how to mark functions as printflike or as not
returning, and put them into a header. Use that throughout the libpcap
code, rather than doing configuration-time tests that have to be
replicated in the autoconf script and CMake files.
That obviates the need to put those tests into CMakeLists.txt and means
that, if we ever make functions with those attributes available by code
outside libpcap (for example, if we ever introduce a plugin mechanism
for libpcap, to allow third-party pcap modules to be maintained
separately from libpcap), we can use those declarations (making a public
header file dependent on the results of a configure script usually
doesn't work well, for a variety of reasons).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We include <unistd.h> for getopt(), but, on Windows, we supply our own
getopt() (as it's a UN*X API), so supply our own header and include that
instead.
While we're at it, mark the copyright strings as unused (to squelch
compiler warnings), and don't include the headers for select() or poll()
in capturetest.c, as we don't use those APIs there (that's what
selpolltest(), which is UN*X-only, is for). <unistd.h> or "getopt.h"
should declare the getopt() external variables, so don't declare them
ourselves.
|
|
|