Wireshark  4.3.0
The Wireshark network protocol analyzer
ascend-int.h
Go to the documentation of this file.
1 
13 #ifndef __ASCEND_INT_H__
14 #define __ASCEND_INT_H__
15 
16 #include <glib.h>
17 #include <stdbool.h>
18 #include "ws_symbol_export.h"
19 
20 typedef struct {
21  time_t inittime;
22  bool adjusted;
23  int64_t next_packet_seek_start;
24 } ascend_t;
25 
26 typedef struct {
27  int length;
28  uint32_t u32_val;
29  uint16_t u16_val;
30  uint8_t u8_val;
31  char str_val[ASCEND_MAX_STR_LEN];
33 
34 typedef struct {
35  FILE_T fh;
36  const char *ascend_parse_error;
37  int err;
38  char *err_info;
39  struct ascend_phdr *pseudo_header;
40  uint8_t *pkt_data;
41 
42  bool saw_timestamp;
43  time_t timestamp;
44 
45  int64_t first_hexbyte;
46  uint32_t wirelen;
47  uint32_t caplen;
48  time_t secs;
49  uint32_t usecs;
50 
51  ascend_token_t token;
53 
54 extern bool
55 run_ascend_parser(uint8_t *pd, ascend_state_t *parser_state, int *err, char **err_info);
56 
57 #endif /* ! __ASCEND_INT_H__ */
Definition: wtap.h:514
Definition: ascend-int.h:34
Definition: ascend-int.h:20
Definition: ascend-int.h:26
Definition: file_wrappers.c:168