aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-02-11 15:04:01 -0800
committerGuy Harris <guy@alum.mit.edu>2010-02-11 15:04:01 -0800
commitb231bfe26cdeaa2bb9375052d5985a82eeda84ec (patch)
treecc7a54a967eb5d63d3ba8316111d941962dda56c
parentab2f33c0e74ad7ce703066dfd500d03784bde676 (diff)
Fix comments.
-rw-r--r--pcap-bpf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pcap-bpf.c b/pcap-bpf.c
index 310256d..b4482e9 100644
--- a/pcap-bpf.c
+++ b/pcap-bpf.c
@@ -2401,7 +2401,8 @@ find_802_11(struct bpf_dltlist *bdlp)
#if defined(__APPLE__) && defined(BIOCGDLTLIST)
/*
- * Remove DLT_EN10MB from the list of DLT_ values.
+ * Remove DLT_EN10MB from the list of DLT_ values, as we're in monitor mode,
+ * and DLT_EN10MB isn't supported in monitor mode.
*/
static void
remove_en(pcap_t *p)
@@ -2442,10 +2443,9 @@ remove_en(pcap_t *p)
}
/*
- * Remove DLT_EN10MB from the list of DLT_ values, and look for the
- * best 802.11 link-layer type in that list and return it.
- * Radiotap is better than anything else; 802.11 with any other radio
- * header is better than 802.11 with no radio header.
+ * Remove 802.11 link-layer types from the list of DLT_ values, as
+ * we're not in monitor mode, and those DLT_ values will switch us
+ * to monitor mode.
*/
static void
remove_802_11(pcap_t *p)