aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-09-13 19:29:47 -0700
committerGuy Harris <guy@alum.mit.edu>2017-09-14 02:30:30 +0000
commit1e26510a6a795402f77ba5cb94f102fe6d0000bd (patch)
tree4e93afa85e91775fef5d47a9e6309c78178c46a8 /wiretap
parent4f34f4296c9335ddc9bb3cc8fec69b6bb1b5a079 (diff)
Fix comments.
Change-Id: Ie9fe895a2763e74a5f1e25f3f1b9d63e02c0bd71 Reviewed-on: https://code.wireshark.org/review/23532 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index 1b1919b355..e96f4ac26c 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -1233,8 +1233,10 @@ static gboolean vwr_read_s1_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
* The packet data does *not* include the FCS - it's just 4 bytes
* of junk - so we have to remove it.
*
- * We'll be stripping off an FCS (?), so make sure we have at
- * least 4 octets worth of FCS.
+ * We'll be stripping off that junk, so make sure we have at least
+ * 4 octets worth of packet data.
+ *
+ * There seems to be a special case of a length of 0.
*/
if (actual_octets < 4) {
if (actual_octets != 0) {
@@ -1631,8 +1633,10 @@ static gboolean vwr_read_s2_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
* The packet data does *not* include the FCS - it's just 4 bytes
* of junk - so we have to remove it.
*
- * We'll be stripping off an FCS (?), so make sure we have at
- * least 4 octets worth of FCS.
+ * We'll be stripping off that junk, so make sure we have at least
+ * 4 octets worth of packet data.
+ *
+ * There seems to be a special case of a length of 0.
*/
if (actual_octets < 4) {
if (actual_octets != 0) {
@@ -2114,11 +2118,13 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
* The packet data does *not* include the FCS - it's just 4 bytes
* of junk - so we have to remove it.
*
- * We'll be stripping off an FCS (?), so make sure we have at
- * least 4 octets worth of FCS.
+ * We'll be stripping off that junk, so make sure we have at
+ * least 4 octets worth of packet data.
*
* XXX - is the FCS actually present here, as it appears to be
* if log_mode isn't 3?
+ *
+ * There seems to be a special case of a length of 0.
*/
if (actual_octets < 4) {
if (actual_octets != 0) {
@@ -2624,8 +2630,8 @@ static gboolean vwr_read_rec_data_ethernet(vwr_t *vwr, struct wtap_pkthdr *phdr,
* The packet data does *not* include the FCS - it's just 4 bytes
* of junk - so we have to remove it.
*
- * We'll be stripping off an FCS (?), so make sure we have at
- * least 4 octets worth of FCS.
+ * We'll be stripping off that junk, so make sure we have at least
+ * 4 octets worth of packet data.
*
* There seems to be a special case of a length of 0.
*/