Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ascend-int.h
Go to the documentation of this file.
1
12
13#ifndef __ASCEND_INT_H__
14#define __ASCEND_INT_H__
15
16#include <stdbool.h>
17#include "ws_symbol_export.h"
18
22typedef struct {
23 time_t inittime;
24 bool adjusted;
26} ascend_t;
27
28
32typedef struct {
33 int length;
34 uint32_t u32_val;
35 uint16_t u16_val;
36 uint8_t u8_val;
37 char str_val[ASCEND_MAX_STR_LEN];
39
43typedef struct {
44 FILE_T fh;
45 const char *ascend_parse_error;
46 int err;
47 char *err_info;
49 uint8_t *pkt_data;
51 time_t timestamp;
52 int64_t first_hexbyte;
53 uint32_t wirelen;
54 uint32_t caplen;
55 time_t secs;
56 uint32_t usecs;
59
68extern bool
69run_ascend_parser(uint8_t *pd, ascend_state_t *parser_state, int *err, char **err_info);
70
71#endif /* ! __ASCEND_INT_H__ */
bool run_ascend_parser(uint8_t *pd, ascend_state_t *parser_state, int *err, char **err_info)
Runs the Ascend parser on the given packet data.
Pseudo-header for Ascend WAN capture files carrying session, call, and task metadata.
Definition wtap.h:530
Tracks the full parser state while reading and decoding a single Ascend capture record.
Definition ascend-int.h:43
char * err_info
Definition ascend-int.h:47
struct ascend_phdr * pseudo_header
Definition ascend-int.h:48
uint32_t usecs
Definition ascend-int.h:56
int64_t first_hexbyte
Definition ascend-int.h:52
uint32_t wirelen
Definition ascend-int.h:53
bool saw_timestamp
Definition ascend-int.h:50
int err
Definition ascend-int.h:46
uint32_t caplen
Definition ascend-int.h:54
FILE_T fh
Definition ascend-int.h:44
uint8_t * pkt_data
Definition ascend-int.h:49
ascend_token_t token
Definition ascend-int.h:57
time_t secs
Definition ascend-int.h:55
const char * ascend_parse_error
Definition ascend-int.h:45
time_t timestamp
Definition ascend-int.h:51
Holds per-file state for reading an Ascend capture file.
Definition ascend-int.h:22
bool adjusted
Definition ascend-int.h:24
int64_t next_packet_seek_start
Definition ascend-int.h:25
time_t inittime
Definition ascend-int.h:23
Holds the parsed value of a single token produced by the Ascend file lexer.
Definition ascend-int.h:32
char str_val[ASCEND_MAX_STR_LEN]
Definition ascend-int.h:37
int length
Definition ascend-int.h:33
uint16_t u16_val
Definition ascend-int.h:35
uint32_t u32_val
Definition ascend-int.h:34
uint8_t u8_val
Definition ascend-int.h:36