diff options
author | delphij <delphij@FreeBSD.org> | 2012-05-14 05:12:56 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-05-14 05:12:56 +0000 |
commit | a3451bb93bbf335a8f6b5feb9b80b256b0e304fe (patch) | |
tree | 158e6045ed438c41ac8de6cb27ac3c73cdc6643a /contrib/libpcap/pcap_can_set_rfmon.3pcap | |
parent | a17ebbd192e814c313397aefc289ab32a0ece772 (diff) | |
parent | e11c3f548e0bd184480800016b8567824dc35516 (diff) | |
download | FreeBSD-src-a3451bb93bbf335a8f6b5feb9b80b256b0e304fe.zip FreeBSD-src-a3451bb93bbf335a8f6b5feb9b80b256b0e304fe.tar.gz |
Merge from vendor branch: update libpcap to 1.2.1.
MFC after: 2 weeks
Diffstat (limited to 'contrib/libpcap/pcap_can_set_rfmon.3pcap')
-rw-r--r-- | contrib/libpcap/pcap_can_set_rfmon.3pcap | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/libpcap/pcap_can_set_rfmon.3pcap b/contrib/libpcap/pcap_can_set_rfmon.3pcap index 4c85e23..00b92a4 100644 --- a/contrib/libpcap/pcap_can_set_rfmon.3pcap +++ b/contrib/libpcap/pcap_can_set_rfmon.3pcap @@ -19,7 +19,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_CAN_SET_RFMON 3PCAP "5 April 2008" +.TH PCAP_CAN_SET_RFMON 3PCAP "18 May 2010" .SH NAME pcap_can_set_rfmon \- check whether monitor mode can be set for a not-yet-activated capture handle @@ -37,11 +37,15 @@ int pcap_can_set_rfmon(pcap_t *p); checks whether monitor mode could be set on a capture handle when the handle is activated. .SH RETURN VALUE -.B pcap_set_rfmon() +.B pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if monitor mode could be set, .B PCAP_ERROR_NO_SUCH_DEVICE -if the device specified when the handle was created doesn't exist, +if the capture source specified when the handle was created doesn't +exist, +.B PCAP_ERROR_PERM_DENIED +if the process doesn't have permission to check whether monitor mode +could be supported, .B PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated, or .B PCAP_ERROR |