aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-07 21:29:01 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-07 21:29:01 +0000
commitae54ef681c53eaa0f074a795e146d9edd985d3d6 (patch)
tree50d6a4fa8619d02dd7e54121f829c540116ebcd5 /wiretap/wtap-int.h
parentf0e2b1a83c846cf087d5997c05c398844cb33198 (diff)
downloadwireshark-ae54ef681c53eaa0f074a795e146d9edd985d3d6.tar.gz
wireshark-ae54ef681c53eaa0f074a795e146d9edd985d3d6.tar.bz2
wireshark-ae54ef681c53eaa0f074a795e146d9edd985d3d6.zip
Make the end-of-packet padding a per-capture-file property.
Read in the entire packet, including the padding, and just tell our caller about the non-padding part; that avoids doing a "file_seek()" ("fseek()"s are inefficient on some platforms, as they flush the standard I/O buffers and do an "lseek()"), and would also let us supply the padding to the caller if it turns out it's an FCS rather than padding. svn path=/trunk/; revision=5107
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index 6b8e04f49a..470bf6d9c9 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -1,6 +1,6 @@
/* wtap-int.h
*
- * $Id: wtap-int.h,v 1.22 2002/03/05 08:39:30 guy Exp $
+ * $Id: wtap-int.h,v 1.23 2002/04/07 21:29:01 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -103,6 +103,7 @@ typedef struct {
int wrapped;
int end_offset;
int version_major;
+ guint padding; /* end-of-packet padding */
} netxray_t;
typedef struct {