| 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
26 bool
27 dfw_semcheck(dfwork_t *dfw);
28
36ftenum_t
37 check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
38
49ftenum_t
50 check_function(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype);
51
62ftenum_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
87ftenum_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
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:197
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:933
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:833
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:1012
dfw_semcheck
bool dfw_semcheck(dfwork_t *dfw)
Perform semantic checking on a filter expression.
Definition semcheck.c:2251
check_arithmetic
ftenum_t check_arithmetic(dfwork_t *dfw, stnode_t *st_node, ftenum_t logical_ftype)
Checks arithmetic operations.
Definition semcheck.c:2138
compatible_ftypes
bool compatible_ftypes(ftenum_t a, ftenum_t b)
Checks if two field types are compatible.
Definition semcheck.c:104
dfwork_t
Definition dfilter-int.h:76
stnode
Definition syntax-tree.h:78