aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-16 20:26:26 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-16 20:26:26 +0000
commit2fba1a4a8cf9158341f9ddf599d8bbaa4fc922f0 (patch)
treec564f5e6f6697e9b5c62edf703f47e4c3e980d3a /wiretap
parent5ff4d8a72109336004586afd6740e26dd1494378 (diff)
Update a comment to reflect reality (we no longer skip all the extra
headers, we look at REC_HEADER2 records). svn path=/trunk/; revision=2904
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/ngsniffer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c
index adcef00ab1..2a96861ed3 100644
--- a/wiretap/ngsniffer.c
+++ b/wiretap/ngsniffer.c
@@ -1,6 +1,6 @@
/* ngsniffer.c
*
- * $Id: ngsniffer.c,v 1.59 2001/01/16 20:12:30 jfoster Exp $
+ * $Id: ngsniffer.c,v 1.60 2001/01/16 20:26:26 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -436,14 +436,17 @@ int ngsniffer_open(wtap *wth, int *err)
wth->file_type = WTAP_FILE_NGSNIFFER_UNCOMPRESSED;
}
- /* Set encap type before reading header records because the
+ /*
+ * Set encap type before reading header records because the
* header record may change encap type.
*/
wth->file_encap = sniffer_encap[version.network];
/*
* We don't know how to handle the remaining header record types,
- * so we just skip them
+ * so we just skip them - except for REC_HEADER2 records, which
+ * we look at, for "Internetwork analyzer" captures, to attempt to
+ * determine what the link-layer encapsulation is.
*/
if (skip_header_records(wth, err, version.maj_vers) < 0)
return -1;