| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
text_import_regex.h
Go to the documentation of this file.
1
15
16
17#ifndef __TEXT_IMPORT_REGEX_H__
18#define __TEXT_IMPORT_REGEX_H__
19
20#include <glib.h>
21
22#include "text_import.h"
23
24#ifdef __cplusplus
25 extern "C" {
26#endif /* __cplusplus */
27
35 void parse_data(unsigned char* start_field, unsigned char* end_field, enum data_encoding encoding);
36
44 void parse_dir(const unsigned char* start_field, const unsigned char* end_field, const char* in_indicator, const char* out_indicator);
45
53 void parse_time(const unsigned char* start_field, const unsigned char* end_field, const char* format);
54
61 void parse_seqno(const unsigned char* start_field, const unsigned char* end_field);
62
66 void flush_packet(void);
67
74 int text_import_regex(const text_import_info_t *info);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* __TEXT_IMPORT_REGEX_H__ */
info
Definition file-pcapng.h:57
text_import_info_t
Complete configuration and runtime state for a text-to-pcap import operation.
Definition text_import.h:84
text_import.h
data_encoding
data_encoding
Encoding used to represent raw byte data in a regex-mode text import.
Definition text_import.h:47
flush_packet
void flush_packet(void)
Flushes the current packet and prepares for the next one.
Definition text_import.c:1256
text_import_regex
int text_import_regex(const text_import_info_t *info)
Imports text data using regular expressions.
Definition text_import_regex.c:28
parse_data
void parse_data(unsigned char *start_field, unsigned char *end_field, enum data_encoding encoding)
Parses data based on the specified encoding.
Definition text_import.c:1066
parse_seqno
void parse_seqno(const unsigned char *start_field, const unsigned char *end_field)
Parses sequence number from a given field.
Definition text_import.c:1245
parse_dir
void parse_dir(const unsigned char *start_field, const unsigned char *end_field, const char *in_indicator, const char *out_indicator)
Parses directory information from a given field.
Definition text_import.c:1128
parse_time
void parse_time(const unsigned char *start_field, const unsigned char *end_field, const char *format)
Parses time information from a given field and updates the timestamp.
Definition text_import.c:1239