14#include "ws_symbol_export.h"
26#define MAX_SCTP_PORT 65535
27#define MAX_TCP_PORT 65535
28#define MAX_UDP_PORT 65535
29#define MAX_DCCP_PORT 65535
39#define RANGE_ADMIN_T_INITIALIZER { 0, 0 }
107 uint32_t max_value,
bool err_on_max);
149WS_DLL_PUBLIC
void range_foreach(
range_t *range,
void (*callback)(uint32_t val,
void *ptr),
void *ptr);
WS_DLL_PUBLIC convert_ret_t range_convert_str(wmem_allocator_t *scope, range_t **range, const char *es, uint32_t max_value)
Converts a range string to a fast comparable array of ranges.
Definition range.c:71
WS_DLL_PUBLIC range_t * range_copy(wmem_allocator_t *scope, const range_t *src)
Definition range.c:430
struct range_admin_tag range_admin_t
Represents a single contiguous range of unsigned integer values with an inclusive lower and upper bou...
WS_DLL_PUBLIC range_t * range_empty(wmem_allocator_t *scope)
Creates an empty range_t structure.
Definition range.c:35
WS_DLL_PUBLIC char * range_convert_range(wmem_allocator_t *scope, const range_t *range)
Definition range.c:407
struct epan_range range_t
WS_DLL_PUBLIC bool range_add_value(wmem_allocator_t *scope, range_t **range, uint32_t val)
Definition range.c:275
convert_ret_t
Return value from range_convert_str().
Definition range.h:50
@ CVT_SYNTAX_ERROR
Definition range.h:52
@ CVT_NO_ERROR
Definition range.h:51
@ CVT_NUMBER_TOO_BIG
Definition range.h:53
WS_DLL_PUBLIC convert_ret_t range_convert_str_work(wmem_allocator_t *scope, range_t **range, const char *es, uint32_t max_value, bool err_on_max)
Internal worker for converting a textual range specification.
Definition range.c:82
WS_DLL_PUBLIC bool ranges_are_equal(const range_t *a, const range_t *b)
Definition range.c:367
WS_DLL_PUBLIC void range_foreach(range_t *range, void(*callback)(uint32_t val, void *ptr), void *ptr)
Definition range.c:393
WS_DLL_PUBLIC bool range_remove_value(wmem_allocator_t *scope, range_t **range, uint32_t val)
Definition range.c:312
WS_DLL_PUBLIC bool value_is_in_range(const range_t *range, uint32_t val)
Definition range.c:258
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
unsigned nranges
Definition range.h:43
range_admin_t ranges[]
Definition range.h:44
Represents a single contiguous range of unsigned integer values with an inclusive lower and upper bou...
Definition range.h:34
uint32_t high
Definition range.h:36
uint32_t low
Definition range.h:35