aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ngsniffer.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1998-11-13 05:57:39 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1998-11-13 05:57:39 +0000
commitd744ff6a91857950287a61d7758546b8f06d17fd (patch)
treea29978089e7880cbef4eb885047517f563cb6d86 /wiretap/ngsniffer.h
parent7b91cc82151285a0312c501318b8e4dc883406fc (diff)
Now that I know where to find the file format of Sniffer trace files, wiretap
now *properly* reads Sniffer files. I now know the field in the file header which denotes link type. svn path=/trunk/; revision=88
Diffstat (limited to 'wiretap/ngsniffer.h')
-rw-r--r--wiretap/ngsniffer.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/wiretap/ngsniffer.h b/wiretap/ngsniffer.h
index f6c7668404..3fc1626392 100644
--- a/wiretap/ngsniffer.h
+++ b/wiretap/ngsniffer.h
@@ -1,6 +1,6 @@
/* ngsniffer.h
*
- * $Id: ngsniffer.h,v 1.2 1998/11/12 06:01:25 gram Exp $
+ * $Id: ngsniffer.h,v 1.3 1998/11/13 05:57:39 gram Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -20,15 +20,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
-struct ngsniffer_hdr {
- guint32 junk1;
- guint32 junk2;
- guint32 junk3;
- guint16 bytes;
- guint16 junk4;
- guint32 junk5;
-};
+#define REC_VERS 1 /* Version record (f_vers) */
+#define REC_FRAME2 4 /* Frame data (f_frame2) */
+#define REC_EOF 3 /* End-of-file record (no data follows) */
int ngsniffer_open(wtap *wth);
int ngsniffer_read(wtap *wth);