diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-08-03 17:32:00 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-08-03 17:32:00 +0000 |
commit | d0811b3d350ac7c34a07c3f9b8d447b39804aa81 (patch) | |
tree | 8a39716a7493cb97fa4ff47b080ff9633325ba83 /wiretap/i4b_trace.h | |
parent | 49284d02cb91a397ba0c2637b47e41f5436ea4d4 (diff) |
Don't assume ints are 32 bits. Fixes a recent Buildbot error.
svn path=/trunk/; revision=15200
Diffstat (limited to 'wiretap/i4b_trace.h')
-rw-r--r-- | wiretap/i4b_trace.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/wiretap/i4b_trace.h b/wiretap/i4b_trace.h index 2e3fd636c1..2cd4e1b0d2 100644 --- a/wiretap/i4b_trace.h +++ b/wiretap/i4b_trace.h @@ -40,19 +40,20 @@ * structure of the header at the beginning of every trace mbuf *---------------------------------------------------------------------------*/ typedef struct { - unsigned int length; /* length of the following mbuf */ - int unit; /* controller unit number */ - int type; /* type of channel */ + guint32 length; /* length of the following mbuf */ + gint32 unit; /* controller unit number */ + gint32 type; /* type of channel */ #define TRC_CH_I 0 /* Layer 1 INFO's */ #define TRC_CH_D 1 /* D channel */ #define TRC_CH_B1 2 /* B1 channel */ #define TRC_CH_B2 3 /* B2 channel */ - int dir; /* direction */ + gint32 dir; /* direction */ #define FROM_TE 0 /* user -> network */ #define FROM_NT 1 /* network -> user */ - int trunc; /* # of truncated bytes (frame > MCLBYTES) */ - unsigned int count; /* frame count for this unit/type */ - struct timeval time; /* timestamp for this frame */ + gint32 trunc; /* # of truncated bytes (frame > MCLBYTES) */ + guint32 count; /* frame count for this unit/type */ + guint32 ts_sec; /* timestamp seconds */ + guint32 ts_usec; /* timestamp microseconds */ } i4b_trace_hdr_t; #define INFO0 0 /* layer 1 */ @@ -79,10 +80,10 @@ typedef struct { #define TRACE_B_RX 0x10 /* trace B channel on */ typedef struct { - int rxunit; /* unit # for rx frames */ - int rxflags; /* d and/or b channel */ - int txunit; /* unit # for tx frames */ - int txflags; /* d and/or b channel */ + gint32 rxunit; /* unit # for rx frames */ + gint32 rxflags; /* d and/or b channel */ + gint32 txunit; /* unit # for tx frames */ + gint32 txflags; /* d and/or b channel */ } i4b_trace_setupa_t; #define I4B_TRC_SETA _IOW('T', 2, i4b_trace_setupa_t) /* set analyze mode */ |