1PCAP_CAN_SET_RFMON(3PCAP)                            PCAP_CAN_SET_RFMON(3PCAP)
2
3
4

NAME

6       pcap_can_set_rfmon  -  check whether monitor mode can be set for a not-
7       yet-activated capture handle
8

SYNOPSIS

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

DESCRIPTION

15       pcap_can_set_rfmon() checks whether monitor mode could be set on a cap‐
16       ture handle when the handle is activated.
17

RETURN VALUE

19       pcap_can_set_rfmon()  returns  0 if monitor mode could not be set, 1 if
20       monitor mode could be set, and a negative value on error.   A  negative
21       return  value  indicates  what  error condition occurred.  The possible
22       error values are:
23
24       PCAP_ERROR_NO_SUCH_DEVICE
25              The capture source specified when the handle was created doesn't
26              exist.
27
28       PCAP_ERROR_PERM_DENIED
29              The  process  doesn't  have  permission to check whether monitor
30              mode could be supported.
31
32       PCAP_ERROR_ACTIVATED
33              The capture handle has already been activated.
34
35       PCAP_ERROR
36              Another     error     occurred.       pcap_geterr(3PCAP)      or
37              pcap_perror(3PCAP)  may be called with p as an argument to fetch
38              or display a message describing the error.
39
40       Additional error codes may be added in the  future;  a  program  should
41       check  for  0,  1,  and  negative, return codes, and treat all negative
42       return codes as errors.  pcap_statustostr(3PCAP) can be called, with  a
43       warning or error code as an argument, to fetch a message describing the
44       warning or error code.
45

SEE ALSO

47       pcap(3PCAP),         pcap_create(3PCAP),          pcap_activate(3PCAP),
48       pcap_set_rfmon(3PCAP)
49
50
51
52                                 31 July 2016        PCAP_CAN_SET_RFMON(3PCAP)
Impressum