1PCAP_CAN_SET_RFMON(3PCAP) PCAP_CAN_SET_RFMON(3PCAP)
2
3
4
6 pcap_can_set_rfmon - check whether monitor mode can be set for a not-
7 yet-activated capture handle
8
10 #include <pcap/pcap.h>
11
12 int pcap_can_set_rfmon(pcap_t *p);
13
15 pcap_can_set_rfmon() checks whether monitor mode could be set on a cap‐
16 ture handle when the handle is activated.
17
19 pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if
20 monitor mode could be set, PCAP_ERROR_NO_SUCH_DEVICE if the capture
21 source specified when the handle was created doesn't exist,
22 PCAP_ERROR_PERM_DENIED if the process doesn't have permission to check
23 whether monitor mode could be supported, PCAP_ERROR_ACTIVATED if called
24 on a capture handle that has been activated, or PCAP_ERROR if an error
25 occurred. If PCAP_ERROR is returned, pcap_geterr() or pcap_perror()
26 may be called with p as an argument to fetch or display the error text.
27
29 pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
30 pcap_set_rfmon(3PCAP)
31
32
33
34 18 May 2010 PCAP_CAN_SET_RFMON(3PCAP)