PCAP_SET_RFMON(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

✨ 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