Man page of PCAP_CAN_SET_RFMON
Section: Misc. Reference Manual Pages (3PCAP)
Updated: 31 July 2016
Return to Main Contents
This man page documents libpcap version 1.10.0.
Your system may have a different version installed, possibly with some
local modifications. To achieve the best results, please make sure this
version of this man page suits your needs. If necessary, try to look for
a different version on this web site or in the man pages available in your
pcap_can_set_rfmon - check whether monitor mode can be set for a
not-yet-activated capture handle
int pcap_can_set_rfmon(pcap_t *p);
checks whether monitor mode could be set on a capture handle when
the handle is activated.
if monitor mode could not be set,
if monitor mode could be set, and a negative value on error.
A negative return value indicates what error condition occurred.
The possible error values are:
The capture source specified when the handle was created doesn't
The process doesn't have permission to check whether monitor mode
could be supported.
The capture handle has already been activated.
Another error occurred.
may be called with
as an argument to fetch or display a message describing the error.
Additional error codes may be added in the future; a program should
and negative, return codes, and treat all negative
return codes as errors.
can be called, with a warning or error code as an argument, to fetch a
message describing the warning or error code.
This document was created by
using the manual pages from "The Tcpdump Group" git repositories.
Time: 12:27:44 GMT, October 07, 2021
[Valid HTML 4.01]