PCAP_SET_RFMON(3)
β¨ NAME β¨
okay so bestie, welcome to PCAP_SET_RFMON(3) from the Library Functions Manual π
this one is pcap_set_rfmon β set monitor mode for a not-yet-activated capture handle. periodt.
πΈ SYNOPSIS πΈ
the whole incantation is:
#include <pcap/pcap.h>
int pcap_set_rfmon(pcap_t *p, int rfmon);
π DESCRIPTION π
pcap_set_rfmon() is the little switch that sets whether monitor mode should be set on a capture handle when the handle is activated. no cap, that's literally its whole job π¦
If rfmon is non-zero, monitor mode will be set. Otherwise, it will not be set. that's the vibe check, and it passed β¨
π RETURN VALUE π
pcap_set_rfmon() returns 0 on success. but if you call it on a capture handle that has been activated β oops, too late bestie π β it returns PCAP_ERROR_ACTIVATED.
π SEE ALSO π
mwah π this has been PCAP_SET_RFMON(3) from the Library Functions Manual, dated 3 January 2014 β iconic, honestly πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms