Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / wiretap / ascend-int.h
blobb688e4446bc22823cc3b0c3a7787828b43c00a40
1 /** @file
3 * Definitions for routines common to multiple modules in the Lucent/Ascend
4 * capture file reading code, but not used outside that code.
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __ASCEND_INT_H__
14 #define __ASCEND_INT_H__
16 #include <glib.h>
17 #include <stdbool.h>
18 #include "ws_symbol_export.h"
20 typedef struct {
21 time_t inittime;
22 bool adjusted;
23 int64_t next_packet_seek_start;
24 } ascend_t;
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];
32 } ascend_token_t;
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;
42 bool saw_timestamp;
43 time_t timestamp;
45 int64_t first_hexbyte;
46 uint32_t wirelen;
47 uint32_t caplen;
48 time_t secs;
49 uint32_t usecs;
51 ascend_token_t token;
52 } ascend_state_t;
54 extern bool
55 run_ascend_parser(uint8_t *pd, ascend_state_t *parser_state, int *err, char **err_info);
57 #endif /* ! __ASCEND_INT_H__ */