static void
pcap_breakloop_dead(pcap_t *p _U_)
{
- /* A breakloop should not be set on a pcap_open_dead pcap_t. */
+ /*
+ * A "dead" pcap_t is just a placeholder to use in order to
+ * compile a filter to BPF code or to open a savefile for
+ * writing. It doesn't support any operations, including
+ * capturing or reading packets, so there will never be a
+ * get-packets loop in progress to break out *of*.
+ *
+ * As such, this routine doesn't need to do anything.
+ */
}
static int
sf_cant_set_rfmon(pcap_t *p _U_)
{
/*
- * This is a savefile, not a live capture file, so never say
- * it's monitor mode.
+ * This is a savefile, not a device on which you can capture,
+ * so never say it supports being put into monitor mode.
*/
return (0);
}