1PCAP_SET_PROMISC(3PCAP)                                PCAP_SET_PROMISC(3PCAP)
2
3
4

NAME

6       pcap_set_promisc - set promiscuous mode for a not-yet-activated capture
7       handle
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_set_promisc(pcap_t *p, int promisc);
13

DESCRIPTION

15       pcap_set_promisc() sets whether promiscuous mode should  be  set  on  a
16       capture  handle  when the handle is activated.  If promisc is non-zero,
17       promiscuous mode will be set, otherwise it will not be set.
18

RETURN VALUE

20       pcap_set_promisc() returns 0  on  success  or  PCAP_ERROR_ACTIVATED  if
21       called on a capture handle that has been activated.
22

SEE ALSO

24       pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
25
26
27
28                                3 January 2014         PCAP_SET_PROMISC(3PCAP)
Impressum