From b231bfe26cdeaa2bb9375052d5985a82eeda84ec Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 11 Feb 2010 15:04:01 -0800 Subject: Fix comments. --- pcap-bpf.c | 10 +++++----- 1 file 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) -- cgit v1.2.3