| 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
22 typedef struct {
23 time_t inittime;
24 bool adjusted;
25 int64_t next_packet_seek_start;
26} ascend_t;
27
28
32 typedef 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];
38} ascend_token_t;
39
43 typedef struct {
44 FILE_T fh;
45 const char *ascend_parse_error;
46 int err;
47 char *err_info;
48 struct ascend_phdr *pseudo_header;
49 uint8_t *pkt_data;
50 bool saw_timestamp;
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;
57 ascend_token_t token;
58} ascend_state_t;
59
68 extern bool
69 run_ascend_parser(uint8_t *pd, ascend_state_t *parser_state, int *err, char **err_info);
70
71#endif /* ! __ASCEND_INT_H__ */
run_ascend_parser
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.
ascend_phdr
Pseudo-header for Ascend WAN capture files carrying session, call, and task metadata.
Definition wtap.h:531
ascend_state_t
Tracks the full parser state while reading and decoding a single Ascend capture record.
Definition ascend-int.h:43
ascend_state_t::err_info
char * err_info
Definition ascend-int.h:47
ascend_state_t::pseudo_header
struct ascend_phdr * pseudo_header
Definition ascend-int.h:48
ascend_state_t::usecs
uint32_t usecs
Definition ascend-int.h:56
ascend_state_t::first_hexbyte
int64_t first_hexbyte
Definition ascend-int.h:52
ascend_state_t::wirelen
uint32_t wirelen
Definition ascend-int.h:53
ascend_state_t::saw_timestamp
bool saw_timestamp
Definition ascend-int.h:50
ascend_state_t::err
int err
Definition ascend-int.h:46
ascend_state_t::caplen
uint32_t caplen
Definition ascend-int.h:54
ascend_state_t::fh
FILE_T fh
Definition ascend-int.h:44
ascend_state_t::pkt_data
uint8_t * pkt_data
Definition ascend-int.h:49
ascend_state_t::token
ascend_token_t token
Definition ascend-int.h:57
ascend_state_t::secs
time_t secs
Definition ascend-int.h:55
ascend_state_t::ascend_parse_error
const char * ascend_parse_error
Definition ascend-int.h:45
ascend_state_t::timestamp
time_t timestamp
Definition ascend-int.h:51
ascend_t
Holds per-file state for reading an Ascend capture file.
Definition ascend-int.h:22
ascend_t::adjusted
bool adjusted
Definition ascend-int.h:24
ascend_t::next_packet_seek_start
int64_t next_packet_seek_start
Definition ascend-int.h:25
ascend_t::inittime
time_t inittime
Definition ascend-int.h:23
ascend_token_t
Holds the parsed value of a single token produced by the Ascend file lexer.
Definition ascend-int.h:32
ascend_token_t::str_val
char str_val[ASCEND_MAX_STR_LEN]
Definition ascend-int.h:37
ascend_token_t::length
int length
Definition ascend-int.h:33
ascend_token_t::u16_val
uint16_t u16_val
Definition ascend-int.h:35
ascend_token_t::u32_val
uint32_t u32_val
Definition ascend-int.h:34
ascend_token_t::u8_val
uint8_t u8_val
Definition ascend-int.h:36