Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
ascend-int.h
1 /* ascend-int.h
2  * Definitions for routines common to multiple modules in the Lucent/Ascend
3  * capture file reading code code, but not used outside that code.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef __ASCEND_INT_H__
13 #define __ASCEND_INT_H__
14 
15 #include <glib.h>
16 #include "ws_symbol_export.h"
17 
18 typedef struct {
19  time_t inittime;
20  gboolean adjusted;
21  gint64 next_packet_seek_start;
22 } ascend_t;
23 
24 typedef struct {
25  FILE_T fh;
26  const gchar *ascend_parse_error;
27  int err;
28  gchar *err_info;
29  struct ascend_phdr *pseudo_header;
30  guint8 *pkt_data;
31 
32  gboolean saw_timestamp;
33  guint32 timestamp;
34 
35  gint64 first_hexbyte;
36  guint32 wirelen;
37  guint32 caplen;
38  time_t secs;
39  guint32 usecs;
41 
42 extern int
43 run_ascend_parser(FILE_T fh, wtap_rec *rec, guint8 *pd,
44  ascend_state_t *parser_state, int *err, gchar **err_info);
45 
46 #endif /* ! __ASCEND_INT_H__ */
Definition: wtap.h:545
Definition: ascend-int.h:18
Definition: ascend-int.h:24
Definition: wtap.h:1274
Definition: file_wrappers.c:78