~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to wiretap/wtap-int.h

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* wtap-int.h
2
2
 *
3
 
 * $Id: wtap-int.h 17862 2006-04-14 12:41:06Z etxrab $
 
3
 * $Id: wtap-int.h 20213 2006-12-25 21:34:11Z guy $
4
4
 *
5
5
 * Wiretap Library
6
6
 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
48
48
        unsigned char *buf;     /* buffer into which we uncompress data */
49
49
        size_t  nbytes;         /* number of bytes of data in that buffer */
50
50
        int     nextout;        /* offset in that buffer of stream's current position */
51
 
        long    comp_offset;    /* current offset in compressed data stream */
52
 
        long    uncomp_offset;  /* current offset in uncompressed data stream */
 
51
        gint64  comp_offset;    /* current offset in compressed data stream */
 
52
        gint64  uncomp_offset;  /* current offset in uncompressed data stream */
53
53
} ngsniffer_comp_stream_t;
54
54
 
55
55
typedef struct {
111
111
        double          start_timestamp;
112
112
        gboolean        wrapped;
113
113
        guint32         nframes;
114
 
        long            start_offset;
115
 
        long            end_offset;
 
114
        gint64          start_offset;
 
115
        gint64          end_offset;
116
116
        int             version_major;
117
117
        gboolean        fcs_valid;      /* if packets have valid FCS at the end */
118
118
        guint           isdn_type;      /* 1 = E1 PRI, 2 = T1 PRI, 3 = BRI */
121
121
typedef struct {
122
122
        time_t inittime;
123
123
        int adjusted;
124
 
        long next_packet_seek_start;
 
124
        gint64 next_packet_seek_start;
125
125
} ascend_t;
126
126
 
127
127
typedef struct {
149
149
        guint32 start_usecs;
150
150
} catapult_dct2000_t;
151
151
 
152
 
typedef gboolean (*subtype_read_func)(struct wtap*, int*, char**, long*);
153
 
typedef gboolean (*subtype_seek_read_func)(struct wtap*, long, union wtap_pseudo_header*,
 
152
typedef gboolean (*subtype_read_func)(struct wtap*, int*, char**, gint64*);
 
153
typedef gboolean (*subtype_seek_read_func)(struct wtap*, gint64, union wtap_pseudo_header*,
154
154
                                        guint8*, int, int *, char **);
155
155
struct wtap {
156
156
        FILE_T                  fh;
162
162
        struct wtap_pkthdr      phdr;
163
163
        union wtap_pseudo_header pseudo_header;
164
164
 
165
 
        long                    data_offset;
 
165
        gint64                  data_offset;
166
166
 
167
167
        union {
168
168
                libpcap_t               *pcap;
192
192
                                                   per-file encapsulation
193
193
                                                   types */
194
194
        int                     tsprecision;    /* timestamp precision of the lower 32bits
195
 
                                                         * e.g. WTAP_FILE_TSPREC_USEC */
 
195
                                                 * e.g. WTAP_FILE_TSPREC_USEC */
196
196
};
197
197
 
198
198
struct wtap_dumper;
248
248
        int                     snaplen;
249
249
        int                     encap;
250
250
        gboolean        compressed;
251
 
        long                    bytes_dumped;
 
251
        gint64          bytes_dumped;
252
252
 
253
253
        union {
254
254
                void                    *opaque;