Main index | Section 3 | Options |
#include <pcap/pcap.h>char errbuf[PCAP_ERRBUF_SIZE];
pcap_t *pcap_open_live(const char *device, int snaplen,
int promisc, int to_ms, char *errbuf);
snaplen specifies the snapshot length to be set on the handle.
promisc specifies if the interface is to be put into promiscuous mode.
to_ms specifies the packet buffer timeout, as a non-negative value, in milliseconds. (See pcap(3) for an explanation of the packet buffer timeout.)
6 December 2017 | PCAP_OPEN_LIVE (3) |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.