Introduce new options cluster_id and cpu_affinity
Support OSX before PCAP_NETMASK_UNKNOWN was added
This was added recently and failed to build due to being undeclared.
…t the same time
On Mac OS X (and other BSDs), poll() does not check RLIMIT_NOFILES. The default is to assume the best case and disallow any new fds from being opened in the child.
If the child exits before the parent goes into select, the parent will block in select indefinitely.
Provide some basic process restrictions on the process using pcap. On Linux, poll() checks the number of allowed file descriptors. If setrlimit sets the value of RLIMIT_NOFILES to 0, poll() fails with EINVAL.
Remove the pedantic calls to free. The process is exiting anyway.
Workaround for users with firewall rules preventing git access.
epcap_net will be around for a while, at least until the examples can be fixed to use the pkt module. Updates will be sporadic though.
Some versions of pcap don't support monitor mode. See this commit: mattsta@4452d85 Use whether the error code for PCAP_ERROR_RFMON_NOTSUP is defined as a weak check for pcap support. Thanks @mattsta!
On Linux, a timeout of 0 will block until the next packet is received. On BSD/Mac OS X, 0 will block until the snaplen buffer is full, so set the default timeout to 500 ms.