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_set_rfmon() returns 0 if monitor mode could not be set, 1 if moni‐
20 tor mode could be set, PCAP_ERROR_NO_SUCH_DEVICE if the device speci‐
21 fied when the handle was created doesn't exist, PCAP_ERROR_ACTIVATED if
22 called on a capture handle that has been activated, or PCAP_ERROR if an
23 error occurred. If PCAP_ERROR is returned, pcap_geterr() or pcap_per‐
24 ror() may be called with p as an argument to fetch or display the error
25 text.
26
28 pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
29 pcap_set_rfmon(3PCAP)
30
31
32
33 5 April 2008 PCAP_CAN_SET_RFMON(3PCAP)