Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
semcheck.h
Go to the documentation of this file.
1
11#ifndef SEMCHECK_H
12#define SEMCHECK_H
13
14#include "dfilter-int.h"
15
26bool
28
37check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
38
50check_function(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
51
63check_slice(dfwork_t *dfw, stnode_t *st, ftenum_t logical_ftype);
64
75void
76resolve_unparsed(dfwork_t *dfw, stnode_t *st, bool strict);
77
88get_logical_ftype(dfwork_t *dfw, stnode_t *st_node);
89
99bool
101
102#endif
enum ftenum ftenum_t
Convenience typedef for ftenum.
Definition ftypes.h:190
void resolve_unparsed(dfwork_t *dfw, stnode_t *st, bool strict)
Resolve an unparsed node in a display filter expression.
Definition semcheck.c:197
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:933
ftenum_t get_logical_ftype(dfwork_t *dfw, stnode_t *st_node)
Retrieves the logical field type for a given node.
Definition semcheck.c:833
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:1012
bool dfw_semcheck(dfwork_t *dfw)
Perform semantic checking on a filter expression.
Definition semcheck.c:2251
ftenum_t check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype)
Checks arithmetic operations.
Definition semcheck.c:2138
bool compatible_ftypes(ftenum_t a, ftenum_t b)
Checks if two field types are compatible.
Definition semcheck.c:104
State for the second stage of display filter compilation (semantic check and code generation).
Definition dfilter-int.h:90
A single node instance in the display filter syntax tree.
Definition syntax-tree.h:115