Wireshark
4.3.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
struct | range_admin_tag |
struct | epan_range |
Macros | |
#define | MAX_SCTP_PORT 65535 |
#define | MAX_TCP_PORT 65535 |
#define | MAX_UDP_PORT 65535 |
#define | MAX_DCCP_PORT 65535 |
#define | RANGE_ADMIN_T_INITIALIZER { 0, 0 } |
Typedefs | |
typedef struct range_admin_tag | range_admin_t |
typedef struct epan_range | range_t |
Enumerations | |
enum | convert_ret_t { CVT_NO_ERROR , CVT_SYNTAX_ERROR , CVT_NUMBER_TOO_BIG } |
Functions | |
WS_DLL_PUBLIC range_t * | range_empty (wmem_allocator_t *scope) |
WS_DLL_PUBLIC convert_ret_t | range_convert_str (wmem_allocator_t *scope, range_t **range, const gchar *es, guint32 max_value) |
WS_DLL_PUBLIC convert_ret_t | range_convert_str_work (wmem_allocator_t *scope, range_t **range, const gchar *es, guint32 max_value, gboolean err_on_max) |
WS_DLL_PUBLIC gboolean | value_is_in_range (const range_t *range, guint32 val) |
WS_DLL_PUBLIC gboolean | range_add_value (wmem_allocator_t *scope, range_t **range, guint32 val) |
WS_DLL_PUBLIC gboolean | range_remove_value (wmem_allocator_t *scope, range_t **range, guint32 val) |
WS_DLL_PUBLIC gboolean | ranges_are_equal (const range_t *a, const range_t *b) |
WS_DLL_PUBLIC void | range_foreach (range_t *range, void(*callback)(guint32 val, gpointer ptr), gpointer ptr) |
WS_DLL_PUBLIC char * | range_convert_range (wmem_allocator_t *scope, const range_t *range) |
WS_DLL_PUBLIC range_t * | range_copy (wmem_allocator_t *scope, const range_t *src) |
Range strings a variant of value_strings
#define MAX_SCTP_PORT 65535 |
typedef struct epan_range range_t |
user specified range(s)
enum convert_ret_t |
Return value from range_convert_str().
WS_DLL_PUBLIC gboolean range_add_value | ( | wmem_allocator_t * | scope, |
range_t ** | range, | ||
guint32 | val | ||
) |
This function returns TRUE if val has successfully been added to a range. This may extend an existing range or create a new one
scope | memory scope of range (in case of reallocation) |
range | to add value |
val | value to add to range |
WS_DLL_PUBLIC char* range_convert_range | ( | wmem_allocator_t * | scope, |
const range_t * | range | ||
) |
This function converts a range_t to a (wmem_alloc()-allocated) string.
WS_DLL_PUBLIC range_t* range_copy | ( | wmem_allocator_t * | scope, |
const range_t * | src | ||
) |
Create a (wmem-alloc()ed) copy of a range
scope | memory scope for the copied range |
src | the range to copy |
WS_DLL_PUBLIC void range_foreach | ( | range_t * | range, |
void(*)(guint32 val, gpointer ptr) | callback, | ||
gpointer | ptr | ||
) |
This function calls the provided callback function for each value in in the range. Takes a pointer argument, which is passed to the callback, along with the value in the range.
range | the range |
callback | the callback function |
ptr | pointer passed to the callback |
WS_DLL_PUBLIC gboolean range_remove_value | ( | wmem_allocator_t * | scope, |
range_t ** | range, | ||
guint32 | val | ||
) |
This function returns TRUE if val has successfully been removed from a range. This may remove an existing range.
scope | memory scope of range (in case of reallocation) |
range | to remove value |
val | value to remove within range |
This function returns TRUE if the two given range_t's are equal.
a | first range |
b | second range |
WS_DLL_PUBLIC gboolean value_is_in_range | ( | const range_t * | range, |
guint32 | val | ||
) |
This function returns TRUE if a given value is within one of the ranges stored in the ranges array.
range | the range |
val | the value to check |