The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
289 B
16 lines
289 B
5 years ago
|
#include <pcap/pcap.h>
|
||
|
|
||
|
int
|
||
|
main()
|
||
|
{
|
||
|
char errbuf[PCAP_ERRBUF_SIZE];
|
||
|
#ifdef __APPLE__
|
||
|
// source = NULL for "any" doesn't work on macOS (linux only?)
|
||
|
char *source = "en0";
|
||
|
#else
|
||
|
char *source = NULL;
|
||
|
#endif
|
||
|
pcap_t *p = pcap_create(source, errbuf);
|
||
|
return p == NULL;
|
||
|
}
|