aboutsummaryrefslogtreecommitdiff
path: root/tests/can_set_rfmon_test.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename the test program directory to testprogs.Guy Harris2018-02-061-96/+0
| | | | | 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.
* Use compiler tests to determine how to define _U_.Guy Harris2017-11-151-0/+2
| | | | One less thing that has to be done in autotools and CMake.
* Move all the function attributes from funcattrs.h to pcap/funcattrs.h.Guy Harris2017-09-081-1/+1
| | | | That lets us use any of them in public declarations, if we ever need to.
* Use compiler #defines to determine how to handle some function attributes.Guy Harris2017-03-191-0/+2
| | | | | | | | | | | | | | | | 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).
* Add a "getopt.h" header and include it instead of <unistd.h> on Windows.Guy Harris2015-11-011-1/+1
| | | | | | | | | | | | | 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.
* Add a test for pcap_can_set_rfmon().Guy Harris2015-03-301-0/+92