diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-18 17:54:36 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-18 17:54:36 -0700 |
commit | 0a77b1b15fd0c52d97c1e5475c965ced0c0121b9 (patch) | |
tree | fa3f7dfc4bf4bceb4dd38218761dc1a99a4a98b3 /pcap_can_set_rfmon.3pcap | |
parent | 59b866591a81143566c3d7ff1c97600ea8e45f05 (diff) |
Return more specific errors from pcap_can_set_rfmon(); fix documentation.
Have pcap_can_set_rfmon() return PCAP_ERROR_PERM_DENIED if you don't
have permission to check the device and PCAP_ERROR_NO_SUCH_DEVICE if
there's no such device, at least on Mac OS X. Other platforms need to
be fixed as well.
Update the documentatation to reflect that it can return
PCAP_ERROR_PERM_DENIED, fix a typo, and speak of capture sources rather
than devices.
Diffstat (limited to 'pcap_can_set_rfmon.3pcap')
-rw-r--r-- | pcap_can_set_rfmon.3pcap | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pcap_can_set_rfmon.3pcap b/pcap_can_set_rfmon.3pcap index 4c85e238..b786694e 100644 --- a/pcap_can_set_rfmon.3pcap +++ b/pcap_can_set_rfmon.3pcap @@ -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 |