| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
semcheck.h
Go to the documentation of this file.
1
10
11#ifndef SEMCHECK_H
12#define SEMCHECK_H
13
14#include "dfilter-int.h"
15
26 bool
27 dfw_semcheck(dfwork_t *dfw);
28
36 ftenum_t
37 check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
38
49 ftenum_t
50 check_function(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
51
62 ftenum_t
63 check_slice(dfwork_t *dfw, stnode_t *st, ftenum_t logical_ftype);
64
75 void
76 resolve_unparsed(dfwork_t *dfw, stnode_t *st, bool strict);
77
87 ftenum_t
88 get_logical_ftype(dfwork_t *dfw, stnode_t *st_node);
89
99 bool
100 compatible_ftypes(ftenum_t a, ftenum_t b);
101
102#endif
dfilter-int.h
ftenum_t
enum ftenum ftenum_t
Convenience typedef for ftenum.
Definition ftypes.h:190
resolve_unparsed
void resolve_unparsed(dfwork_t *dfw, stnode_t *st, bool strict)
Resolve an unparsed node in a display filter expression.
Definition semcheck.c:210
check_slice
ftenum_t check_slice(dfwork_t *dfw, stnode_t *st, ftenum_t logical_ftype)
Checks if a slice can be resolved and returns its logical field type.
Definition semcheck.c:946
get_logical_ftype
ftenum_t get_logical_ftype(dfwork_t *dfw, stnode_t *st_node)
Retrieves the logical field type for a given node.
Definition semcheck.c:846
check_function
ftenum_t check_function(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype)
Checks if a function call is valid based on its parameters.
Definition semcheck.c:1025
dfw_semcheck
bool dfw_semcheck(dfwork_t *dfw)
Perform semantic checking on a filter expression.
Definition semcheck.c:2264
check_arithmetic
ftenum_t check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype)
Checks arithmetic operations.
Definition semcheck.c:2151
compatible_ftypes
bool compatible_ftypes(ftenum_t a, ftenum_t b)
Checks if two field types are compatible.
Definition semcheck.c:104
dfwork_t
State for the second stage of display filter compilation (semantic check and code generation).
Definition dfilter-int.h:90
stnode_t
struct stnode stnode_t
A single node instance in the display filter syntax tree.