Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
sttype-slice.h File Reference
#include "syntax-tree.h"
#include "drange.h"

Go to the source code of this file.

Functions

stnode_tsttype_slice_entity (stnode_t *node)
 Get the entity associated with a slice node.
 
drange_tsttype_slice_drange (stnode_t *node)
 Get the drange associated with a slice node.
 
drange_tsttype_slice_drange_steal (stnode_t *node)
 Steal the drange from a slice node, transferring ownership to the caller.
 
void sttype_slice_set (stnode_t *node, stnode_t *field, GSList *drange_list)
 Set the slice entity and range for a given node.
 
void sttype_slice_set1 (stnode_t *node, stnode_t *field, drange_node *rn)
 Set a slice node with a single range.
 
void sttype_slice_set_drange (stnode_t *node, stnode_t *field, drange_t *dr)
 Set the drange for a slice node.
 
void sttype_slice_remove_drange (stnode_t *node)
 Remove the drange from a slice node, clearing ownership.
 

Detailed Description

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 2001 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ sttype_slice_drange()

drange_t * sttype_slice_drange ( stnode_t node)

Get the drange associated with a slice node.

Parameters
nodeThe slice node to query.
Returns
The drange of the slice.

◆ sttype_slice_drange_steal()

drange_t * sttype_slice_drange_steal ( stnode_t node)

Steal the drange from a slice node, transferring ownership to the caller.

Parameters
nodeThe slice node to steal the drange from.
Returns
The stolen drange.

◆ sttype_slice_entity()

stnode_t * sttype_slice_entity ( stnode_t node)

Get the entity associated with a slice node.

Parameters
nodeThe slice node to query.
Returns
The entity of the slice.

◆ sttype_slice_remove_drange()

void sttype_slice_remove_drange ( stnode_t node)

Remove the drange from a slice node, clearing ownership.

Parameters
nodeThe slice node to remove the drange from.

◆ sttype_slice_set()

void sttype_slice_set ( stnode_t node,
stnode_t field,
GSList *  drange_list 
)

Set the slice entity and range for a given node.

Parameters
nodeThe node to set the slice entity and range for.
fieldThe field to be used as the slice entity.
drange_listThe list of ranges to be associated with the slice.

◆ sttype_slice_set1()

void sttype_slice_set1 ( stnode_t node,
stnode_t field,
drange_node rn 
)

Set a slice node with a single range.

Parameters
nodeThe slice node to set.
fieldThe entity field for the slice.
rnThe range node to be added.

◆ sttype_slice_set_drange()

void sttype_slice_set_drange ( stnode_t node,
stnode_t field,
drange_t dr 
)

Set the drange for a slice node.

Parameters
nodeThe slice node to set the drange for.
fieldThe field associated with the slice.
drThe drange to assign to the slice.