29#include "ws_symbol_export.h"
30#include "ws_attributes.h"
45WS_DLL_PUBLIC
int hf_text_only;
48#define ITEM_LABEL_LENGTH 240
50#define ITEM_LABEL_UNKNOWN_STR "Unknown"
55#define cast_same(type, x) (0 ? (type)0 : (x))
58#define VALS(x) (cast_same(const struct _value_string*, (x)))
61#define VALS64(x) (cast_same(const struct _val64_string*, (x)))
64#define VALS_EXT_PTR(x) (cast_same(value_string_ext*, (x)))
67#define TIME_VALS(x) (cast_same(const struct _time_value_string*, (x)))
70#define TFS(x) (cast_same(const struct true_false_string*, (x)))
73#define UNS(x) (cast_same(const struct unit_name_string*, (x)))
75typedef void (*custom_fmt_func_t)(
char *, uint32_t);
77typedef void (*custom_fmt_func_64_t)(
char *, uint64_t);
79typedef void (*custom_fmt_func_double_t)(
char *, double);
88#define CF_FUNC(x) ((const void *) (size_t) (x))
92#define RVALS(x) (cast_same(const struct _range_string*, (x)))
95#define FRAMENUM_TYPE(x) GINT_TO_POINTER(x)
112WS_DLL_PUBLIC WS_NORETURN
116#define REPORT_DISSECTOR_BUG(...) \
117 proto_report_dissector_bug(__VA_ARGS__)
124#define __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression) \
125 ; __analysis_assume(expression);
127#define __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
141#define __DISSECTOR_ASSERT_STRINGIFY(s) # s
143#define __DISSECTOR_ASSERT(expression, file, lineno) \
144 (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"%s\"", \
145 file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))
147#define __DISSECTOR_ASSERT_HINT(expression, file, lineno, hint) \
148 (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"%s\" (%s)", \
149 file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression), hint))
151#define DISSECTOR_ASSERT(expression) \
152 ((void) ((expression) ? (void)0 : \
153 __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) \
154 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
163#define DISSECTOR_ASSERT_HINT(expression, hint) \
164 ((void) ((expression) ? (void)0 : \
165 __DISSECTOR_ASSERT_HINT (expression, __FILE__, __LINE__, hint))) \
166 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
171#define DISSECTOR_ASSERT(expression) \
172{ if(!(expression)) _asm { int 3}; }
183#define DISSECTOR_ASSERT_NOT_REACHED() \
184 (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"DISSECTOR_ASSERT_NOT_REACHED\"", \
206#define __DISSECTOR_ASSERT_CMPINT(a, op, b, type, fmt) \
207 (REPORT_DISSECTOR_BUG("%s:%u: failed assertion " #a " " #op " " #b " (" fmt " " #op " " fmt ")", \
208 __FILE__, __LINE__, (type)a, (type)b))
210#define DISSECTOR_ASSERT_CMPINT(a, op, b) \
211 ((void) ((a op b) ? (void)0 : \
212 __DISSECTOR_ASSERT_CMPINT (a, op, b, int64_t, "%" PRId64))) \
213 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
220#define DISSECTOR_ASSERT_CMPUINT(a, op, b) \
221 ((void) ((a op b) ? (void)0 : \
222 __DISSECTOR_ASSERT_CMPINT (a, op, b, uint64_t, "%" PRIu64))) \
223 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
228#define DISSECTOR_ASSERT_CMPUINTHEX(a, op, b) \
229 ((void) ((a op b) ? (void)0 : \
230 __DISSECTOR_ASSERT_CMPINT (a, op, b, uint64_t, "0x%" PRIX64))) \
231 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
241#define __DISSECTOR_ASSERT_FIELD_TYPE(hfinfo, t) \
242 (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type "#t, \
243 __FILE__, __LINE__, (hfinfo)->abbrev))
245#define DISSECTOR_ASSERT_FIELD_TYPE(hfinfo, t) \
246 ((void) (((hfinfo)->type == t) ? (void)0 : \
247 __DISSECTOR_ASSERT_FIELD_TYPE ((hfinfo), t))) \
248 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT((hfinfo)->type == t)
250#define DISSECTOR_ASSERT_FIELD_TYPE_IS_INTEGRAL(hfinfo) \
251 ((void) ((FT_IS_INTEGER((hfinfo)->type)) ? (void)0 : \
252 REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_CHAR or an FT_{U}INTn type", \
253 __FILE__, __LINE__, (hfinfo)->abbrev))) \
254 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(FT_IS_INTEGER((hfinfo)->type))
256#define __DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo) \
257 (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_STRING, FT_STRINGZ, FT_STRINGZPAD, FT_STRINGZTRUNC, or FT_UINT_STRING", \
258 __FILE__, __LINE__, (hfinfo)->abbrev))
260#define DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo) \
261 ((void) (FT_IS_STRING((hfinfo)->type) ? (void)0 : \
262 __DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING ((hfinfo)))) \
263 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(FT_IS_STRING((hfinfo)->type))
265#define __DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME(hfinfo) \
266 (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_ABSOLUTE_TIME or FT_RELATIVE_TIME", \
267 __FILE__, __LINE__, (hfinfo)->abbrev))
269#define DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME(hfinfo) \
270 ((void) (((hfinfo)->type == FT_ABSOLUTE_TIME || \
271 (hfinfo)->type == FT_RELATIVE_TIME) ? (void)0 : \
272 __DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME ((hfinfo)))) \
273 __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT((hfinfo)->type == FT_ABSOLUTE_TIME || \
274 (hfinfo)->type == FT_RELATIVE_TIME)
327#define ENC_BIG_ENDIAN 0x00000000
328#define ENC_LITTLE_ENDIAN 0x80000000
330#if G_BYTE_ORDER == G_LITTLE_ENDIAN
331 #define ENC_HOST_ENDIAN ENC_LITTLE_ENDIAN
332 #define ENC_ANTI_HOST_ENDIAN ENC_BIG_ENDIAN
334 #define ENC_HOST_ENDIAN ENC_BIG_ENDIAN
335 #define ENC_ANTI_HOST_ENDIAN ENC_LITTLE_ENDIAN
345#define ENC_NA 0x00000000
375#define ENC_CHARENCODING_MASK 0x0000FFFE
376#define ENC_ASCII 0x00000000
377#define ENC_ISO_646_IRV ENC_ASCII
378#define ENC_UTF_8 0x00000002
379#define ENC_UTF_16 0x00000004
380#define ENC_UCS_2 0x00000006
381#define ENC_UCS_4 0x00000008
382#define ENC_ISO_8859_1 0x0000000A
383#define ENC_ISO_8859_2 0x0000000C
384#define ENC_ISO_8859_3 0x0000000E
385#define ENC_ISO_8859_4 0x00000010
386#define ENC_ISO_8859_5 0x00000012
387#define ENC_ISO_8859_6 0x00000014
388#define ENC_ISO_8859_7 0x00000016
389#define ENC_ISO_8859_8 0x00000018
390#define ENC_ISO_8859_9 0x0000001A
391#define ENC_ISO_8859_10 0x0000001C
392#define ENC_ISO_8859_11 0x0000001E
394#define ENC_ISO_8859_13 0x00000022
395#define ENC_ISO_8859_14 0x00000024
396#define ENC_ISO_8859_15 0x00000026
397#define ENC_ISO_8859_16 0x00000028
398#define ENC_WINDOWS_1250 0x0000002A
399#define ENC_3GPP_TS_23_038_7BITS_PACKED 0x0000002C
400#define ENC_3GPP_TS_23_038_7BITS ENC_3GPP_TS_23_038_7BITS_PACKED
401#define ENC_EBCDIC 0x0000002E
402#define ENC_MAC_ROMAN 0x00000030
403#define ENC_CP437 0x00000032
404#define ENC_ASCII_7BITS 0x00000034
405#define ENC_T61 0x00000036
406#define ENC_EBCDIC_CP037 0x00000038
407#define ENC_WINDOWS_1252 0x0000003A
408#define ENC_WINDOWS_1251 0x0000003C
409#define ENC_CP855 0x0000003E
410#define ENC_CP866 0x00000040
411#define ENC_ISO_646_BASIC 0x00000042
412#define ENC_BCD_DIGITS_0_9 0x00000044
413#define ENC_KEYPAD_ABC_TBCD 0x00000046
414#define ENC_KEYPAD_BC_TBCD 0x00000048
415#define ENC_3GPP_TS_23_038_7BITS_UNPACKED 0x0000004C
416#define ENC_ETSI_TS_102_221_ANNEX_A 0x0000004E
417#define ENC_GB18030 0x00000050
418#define ENC_EUC_KR 0x00000052
419#define ENC_APN_STR 0x00000054
420#define ENC_DECT_STANDARD_8BITS 0x00000056
421#define ENC_DECT_STANDARD_4BITS_TBCD 0x00000058
422#define ENC_EBCDIC_CP500 0x00000060
454#define ENC_ZIGBEE 0x40000000
464#define ENC_BOM 0x20000000
474#define ENC_STR_NUM 0x01000000
476#define ENC_STR_HEX 0x02000000
478#define ENC_STR_DEC 0x04000000
480#define ENC_STRING 0x07000000
482#define ENC_STR_MASK 0x0000FFFE
497#define ENC_NUM_PREF 0x00200000
509#define ENC_SEP_NONE 0x00010000
510#define ENC_SEP_COLON 0x00020000
511#define ENC_SEP_DASH 0x00040000
512#define ENC_SEP_DOT 0x00080000
513#define ENC_SEP_SPACE 0x00100000
515#define ENC_SEP_MASK 0x001F0000
521#define ENC_BCD_ODD_NUM_DIG 0x00010000
522#define ENC_BCD_SKIP_FIRST 0x00020000
607#define ENC_TIME_SECS_NSECS 0x00000000
608#define ENC_TIME_TIMESPEC 0x00000000
609#define ENC_TIME_NTP 0x00000002
610#define ENC_TIME_TOD 0x00000004
611#define ENC_TIME_RTPS 0x00000008
612#define ENC_TIME_NTP_BASE_ZERO 0x00000008
613#define ENC_TIME_SECS_USECS 0x00000010
614#define ENC_TIME_TIMEVAL 0x00000010
615#define ENC_TIME_SECS 0x00000012
616#define ENC_TIME_MSECS 0x00000014
617#define ENC_TIME_SECS_NTP 0x00000018
618#define ENC_TIME_RFC_3971 0x00000020
619#define ENC_TIME_MSEC_NTP 0x00000022
620#define ENC_TIME_MIP6 0x00000024
621#define ENC_TIME_MP4_FILE_SECS 0x00000026
622#define ENC_TIME_CLASSIC_MAC_OS_SECS 0x00000026
623#define ENC_TIME_NSECS 0x00000028
624#define ENC_TIME_USECS 0x00000030
625#define ENC_TIME_ZBEE_ZCL 0x00000032
634#define ENC_ISO_8601_DATE 0x00010000
635#define ENC_ISO_8601_TIME 0x00020000
636#define ENC_ISO_8601_DATE_TIME 0x00030000
637#define ENC_IMF_DATE_TIME 0x00040000
638#define ENC_RFC_822 0x00040000
639#define ENC_RFC_1123 0x00040000
640#define ENC_ISO_8601_DATE_TIME_BASIC 0x00100000
642#define ENC_STR_TIME_MASK 0x001F0000
651#define ENC_VARINT_PROTOBUF 0x00000002
656#define ENC_VARINT_QUIC 0x00000004
661#define ENC_VARINT_ZIGZAG 0x00000008
666#define ENC_VARINT_SDNV 0x00000010
668#define ENC_VARINT_MASK (ENC_VARINT_PROTOBUF|ENC_VARINT_QUIC|ENC_VARINT_ZIGZAG|ENC_VARINT_SDNV)
676#define FIELD_DISPLAY_E_MASK 0xFF
722#define FIELD_DISPLAY(d) ((d) & FIELD_DISPLAY_E_MASK)
724#define FIELD_DISPLAY_IS_ABSOLUTE_TIME(d) \
725 (FIELD_DISPLAY(d) >= ABSOLUTE_TIME_LOCAL && FIELD_DISPLAY(d) <= ABSOLUTE_TIME_UNIX)
729#define BASE_RANGE_STRING 0x00000100
730#define BASE_EXT_STRING 0x00000200
731#define BASE_VAL64_STRING 0x00000400
733#define BASE_ALLOW_ZERO 0x00000800
735#define BASE_UNIT_STRING 0x00001000
737#define BASE_NO_DISPLAY_VALUE 0x00002000
740#define BASE_PROTOCOL_INFO 0x00004000
742#define BASE_SPECIAL_VALS 0x00008000
744#define BASE_SHOW_ASCII_PRINTABLE 0x00010000
746#define BASE_SHOW_UTF_8_PRINTABLE 0x00020000
749#define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC)
752#define IS_BASE_PORT(b) (((b)==BASE_PT_UDP||(b)==BASE_PT_TCP||(b)==BASE_PT_DCCP||(b)==BASE_PT_SCTP))
794#define HFILL -1, 0, HF_REF_TYPE_NONE, -1, NULL
796#define HFILL_INIT(hf) \
797 (hf).hfinfo.id = -1; \
798 (hf).hfinfo.parent = 0; \
799 (hf).hfinfo.ref_type = HF_REF_TYPE_NONE; \
800 (hf).hfinfo.same_name_prev_id = -1; \
801 (hf).hfinfo.same_name_next = NULL;
858#define FI_HIDDEN 0x00000001
861#define FI_GENERATED 0x00000002
863#define FI_URL 0x00000004
866#define FI_LITTLE_ENDIAN 0x00000008
868#define FI_BIG_ENDIAN 0x00000010
870#define FI_BITS_OFFSET(n) (((n) & 63) << 5)
873#define FI_BITS_SIZE(n) (((n) & 63) << 12)
875#define FI_VARINT 0x00040000
878#define FI_GET_FLAG(fi, flag) ((fi) ? ((fi)->flags & (flag)) : 0)
880#define FI_SET_FLAG(fi, flag) \
883 (fi)->flags = (fi)->flags | (flag); \
886#define FI_RESET_FLAG(fi, flag) \
889 (fi)->flags = (fi)->flags & ~(flag); \
892#define FI_GET_BITS_OFFSET(fi) (FI_GET_FLAG(fi, FI_BITS_OFFSET(63)) >> 5)
893#define FI_GET_BITS_SIZE(fi) (FI_GET_FLAG(fi, FI_BITS_SIZE(63)) >> 12)
898 GHashTable *interesting_hfids;
903 tvbuff_t *idle_count_ds_tvb;
905 unsigned start_idle_count;
932#define PI_SEVERITY_MASK 0x00F00000
934#define PI_COMMENT 0x00100000
936#define PI_CHAT 0x00200000
938#define PI_NOTE 0x00400000
940#define PI_WARN 0x00600000
942#define PI_ERROR 0x00800000
945#define PI_GROUP_MASK 0xFF000000
947#define PI_CHECKSUM 0x01000000
949#define PI_SEQUENCE 0x02000000
951#define PI_RESPONSE_CODE 0x03000000
953#define PI_REQUEST_CODE 0x04000000
955#define PI_UNDECODED 0x05000000
957#define PI_REASSEMBLE 0x06000000
959#define PI_MALFORMED 0x07000000
961#define PI_DEBUG 0x08000000
963#define PI_PROTOCOL 0x09000000
965#define PI_SECURITY 0x0a000000
967#define PI_COMMENTS_GROUP 0x0b000000
969#define PI_DECRYPTION 0x0c000000
971#define PI_ASSUMPTION 0x0d000000
973#define PI_DEPRECATED 0x0e000000
975#define PI_RECEIVE 0x0f000000
977#define PI_INTERFACE 0x10000000
979#define PI_DISSECTOR_BUG 0x11000000
987#define PNODE_FINFO(proto_node) ((proto_node)->finfo)
990#define PITEM_FINFO(proto_item) PNODE_FINFO(proto_item)
993#define PTREE_FINFO(proto_tree) PNODE_FINFO(proto_tree)
996#define PNODE_HFINFO(proto_node) ((proto_node)->hfinfo)
999#define PITEM_HFINFO(proto_item) PNODE_HFINFO(proto_item)
1002#define PTREE_HFINFO(proto_tree) PNODE_HFINFO(proto_tree)
1005#define PTREE_DATA(proto_tree) ((proto_tree)->tree_data)
1008#define PNODE_POOL(proto_node) ((proto_node)->tree_data->pinfo->pool)
1015static inline bool proto_item_is_hidden(
const proto_item *ti) {
1022#define PROTO_ITEM_IS_HIDDEN(ti) proto_item_is_hidden((ti))
1028static inline void proto_item_set_hidden(
proto_item *ti) {
1033#define PROTO_ITEM_SET_HIDDEN(ti) proto_item_set_hidden((ti))
1038static inline void proto_item_set_visible(
proto_item *ti) {
1043#define PROTO_ITEM_SET_VISIBLE(ti) proto_item_set_visible((ti))
1049static inline bool proto_item_is_generated(
const proto_item *ti)
1056#define PROTO_ITEM_IS_GENERATED(ti) proto_item_is_generated((ti))
1061static inline void proto_item_set_generated(
proto_item *ti) {
1066#define PROTO_ITEM_SET_GENERATED(ti) proto_item_set_generated((ti))
1073static inline bool proto_item_is_url(
const proto_item *ti)
1080#define PROTO_ITEM_IS_URL(ti) proto_item_is_url((ti))
1085static inline void proto_item_set_url(
proto_item *ti) {
1090#define PROTO_ITEM_SET_URL(ti) proto_item_set_url((ti))
1168void proto_init(GSList *register_all_plugin_protocols_list,
1169 GSList *register_all_plugin_handoffs_list,
1170 register_entity_func register_func, register_entity_func handoff_func,
1370proto_tree_prime_with_hfid(proto_tree *tree, const
int hfid);
1378proto_tree_prime_with_hfid_print(proto_tree *tree, const
int hfid);
1411WS_DLL_PUBLIC
void proto_tree_set_appendix(proto_tree *tree, tvbuff_t *tvb,
unsigned start, const
unsigned length);
1425 const
unsigned start,
int length, const
unsigned encoding);
1450 const
unsigned start,
int length, const
unsigned encoding);
1466 const
unsigned start,
int length, const
unsigned encoding,
int *lenretval);
1482 const
unsigned start,
int length, const
unsigned encoding,
int *lenretval);
1517 const
unsigned start,
int length, const
unsigned encoding, int32_t *retval);
1533 const
unsigned start,
int length, const
unsigned encoding, int64_t *retval);
1550 const
unsigned start,
int length, const
unsigned encoding, uint32_t *retval);
1569 const
unsigned start,
int length, const
unsigned encoding, uint32_t *retval);
1585 const
unsigned start,
int length, const
unsigned encoding, uint8_t *retval);
1601 const
unsigned start,
int length, const
unsigned encoding, uint16_t *retval);
1617 const
unsigned start,
int length, const
unsigned encoding, uint64_t *retval);
1643 const
unsigned start,
int length, const
unsigned encoding, uint64_t *retval,
int *lenretval);
1659 const
unsigned start,
int length, const
unsigned encoding,
bool *retval);
1676 const
unsigned start,
int length, const
unsigned encoding,
ws_in4_addr *retval);
1694 const
unsigned start,
int length, const
unsigned encoding,
ws_in6_addr *retval);
1712 const
unsigned start,
int length, const
unsigned encoding, uint8_t *retval);
1729 const
unsigned start,
int length,
1730 const
unsigned encoding,
float *retval);
1747 const
unsigned start,
int length,
1748 const
unsigned encoding,
double *retval);
1781 tvbuff_t *tvb, const
unsigned start,
int length, const
unsigned encoding,
1813 const
unsigned start,
int length, const
unsigned encoding,
1839 const
unsigned start,
int length, const
unsigned encoding,
1862 const
unsigned start,
int length, const
unsigned encoding,
1883 const
unsigned start,
int length, const
unsigned encoding,
1896 ...) G_GNUC_PRINTF(5,6);
1908 int length, const
char *format, va_list ap) G_GNUC_PRINTF(5, 0);
1919WS_DLL_PUBLIC proto_tree *
1933WS_DLL_PUBLIC proto_tree *
1935 proto_item **tree_item, const
char *format, ...) G_GNUC_PRINTF(7,8);
1956 int length, const
char *format, ...) G_GNUC_PRINTF(6,7);
1969 int length, const
char *format, ...) G_GNUC_PRINTF(6,7);
1981 int length, const uint8_t* start_ptr);
1995 int length, const uint8_t *start_ptr,
int ptr_length);
2032 const
unsigned start,
unsigned length, const
unsigned encoding,
2033 GByteArray *retval,
unsigned *endoff,
int *err);
2050 unsigned start,
int length, const uint8_t* start_ptr, const
char *format,
2051 ...) G_GNUC_PRINTF(7,8);
2067 int length, const uint8_t* start_ptr, const
char *format, ...) G_GNUC_PRINTF(7,8);
2079 unsigned length, const
nstime_t* value_ptr);
2113 const
unsigned start, const
unsigned length, const
unsigned encoding,
2114 nstime_t *retval,
unsigned *endoff,
int *err);
2131 unsigned start,
unsigned length,
nstime_t* value_ptr, const
char *format, ...)
2148 unsigned length,
nstime_t* value_ptr, const
char *format, ...) G_GNUC_PRINTF(7,8);
2160 unsigned length, uint32_t value);
2176 unsigned start,
unsigned length, uint32_t value, const
char *format, ...)
2192 unsigned length, uint32_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2220 unsigned start,
unsigned length,
ws_in4_addr value, const
char *format, ...)
2236 unsigned length,
ws_in4_addr value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2264 unsigned start,
unsigned length, const
ws_in6_addr *value_ptr, const
char *format,
2265 ...) G_GNUC_PRINTF(7,8);
2280 unsigned length, const
ws_in6_addr *value_ptr, const
char *format, ...) G_GNUC_PRINTF(7,8);
2292 unsigned length, const uint8_t* value);
2308 unsigned start,
unsigned length, const uint8_t* value, const
char *format, ...)
2324 unsigned length, const uint8_t* value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2336 unsigned length, const
e_guid_t *value_ptr);
2352 unsigned start,
unsigned length, const
e_guid_t *value_ptr, const
char *format,
2353 ...) G_GNUC_PRINTF(7,8);
2368 unsigned length, const
e_guid_t *value_ptr, const
char *format, ...) G_GNUC_PRINTF(7,8);
2380 unsigned length, const uint8_t* value_ptr);
2396 unsigned start,
unsigned length, const uint8_t* value_ptr, const
char *format,
2397 ...) G_GNUC_PRINTF(7,8);
2412 unsigned length, const uint8_t* value_ptr, const
char *format, ...) G_GNUC_PRINTF(7,8);
2435 int length, const
char* value);
2451 unsigned start,
int length, const
char* value, const
char *format, ...)
2468 int length, const
char* value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2480 unsigned length, uint64_t value);
2496 tvbuff_t *tvb,
unsigned start,
unsigned length, uint64_t value,
2497 const
char *format, ...) G_GNUC_PRINTF(7,8);
2512 unsigned length, uint64_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2524 unsigned length,
float value);
2540 unsigned start,
unsigned length,
float value, const
char *format, ...)
2556 unsigned length,
float value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2568 unsigned length,
double value);
2584 unsigned start,
unsigned length,
double value, const
char *format, ...)
2600 unsigned length,
double value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2612 unsigned length, uint32_t value);
2628 unsigned start,
unsigned length, uint32_t value, const
char *format, ...)
2645 unsigned length, uint32_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2657 unsigned length, uint64_t value);
2673 unsigned start,
unsigned length, uint64_t value, const
char *format, ...)
2689 unsigned length, uint64_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2701 unsigned length, int32_t value);
2717 unsigned start,
unsigned length, int32_t value, const
char *format, ...)
2734 unsigned length, int32_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2746 unsigned length, int64_t value);
2762 unsigned start,
unsigned length, int64_t value, const
char *format, ...)
2778 unsigned length, int64_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2790 unsigned length, const uint64_t value);
2806 unsigned start,
unsigned length, const uint64_t value, const
char *format, ...)
2822 unsigned length, const uint64_t value, const
char *format, ...) G_GNUC_PRINTF(7,8);
2827 int *hf_addr_resolved;
2829 int *hf_oui_resolved;
2846 int idx, tvbuff_t *tvb, proto_tree *tree,
unsigned offset);
2856 ...) G_GNUC_PRINTF(2,3);
2900 int parent_proto, enum
ftenum field_type);
3201 bool *is_ip,
bool *is_tcp,
bool *is_udp,
bool *is_sctp,
3202 bool *is_tls,
bool *is_rtp,
bool *is_lte_rlc);
3277WS_DLL_PUBLIC GPtrArray*
proto_find_finfo(proto_tree *tree,
const int hfindex);
3343WS_DLL_PUBLIC
int num_tree_types;
3423 const int hf_hdr,
const int ett,
int *
const *fields,
const unsigned encoding);
3449 const int hf_hdr,
const int ett,
int *
const *fields,
3450 const unsigned encoding, uint64_t *retval);
3477 const int hf_hdr,
const int ett,
int *
const *fields,
const unsigned encoding,
const int flags);
3507 const int hf_hdr,
const int ett,
int *
const *fields,
3508 const unsigned encoding,
const int flags, uint64_t *retval);
3531 const int hf_hdr,
const int ett,
int *
const *fields,
const uint64_t value);
3558 const int hf_hdr,
const int ett,
int *
const *fields,
const uint64_t value,
const int flags);
3576 const unsigned len,
int *
const *fields,
const unsigned encoding);
3595 const unsigned len,
int *
const *fields,
const unsigned encoding, uint64_t *retval);
3613 const unsigned len,
int *
const *fields,
const uint64_t value);
3639 const int hf_hdr,
const int ett,
int *
const *fields,
struct expert_field* exp,
const unsigned encoding);
3655 const char *name,
const char *fallback,
3656 const int ett,
int *
const *fields,
const unsigned encoding,
const int flags);
3658#define BMT_NO_FLAGS 0x00
3659#define BMT_NO_APPEND 0x01
3660#define BMT_NO_INT 0x02
3661#define BMT_NO_FALSE 0x04
3662#define BMT_NO_TFS 0x08
3675 const int no_of_bits,
const unsigned encoding);
3694 const unsigned bit_offset,
const crumb_spec_t *crumb_spec, uint64_t *return_value);
3711 const unsigned bit_offset,
const crumb_spec_t *crumb_spec, uint16_t crumb_index);
3725 const unsigned bit_offset,
const int no_of_bits, uint64_t *return_value,
const unsigned encoding);
3741 const unsigned bit_offset,
const int no_of_bits, uint32_t value,
const unsigned encoding,
3742 const char *format, ...)
3759 const
unsigned bit_offset, const
int no_of_bits, uint64_t value, const
unsigned encoding,
3760 const
char *format, ...)
3778 const
unsigned bit_offset, const
int no_of_bits, uint64_t value, const
unsigned encoding,
3779 const
char *format, ...)
3797 const
unsigned bit_offset, const
int no_of_bits, int32_t value, const
unsigned encoding,
3798 const
char *format, ...)
3816 const
unsigned bit_offset, const
int no_of_bits, int64_t value, const
unsigned encoding,
3817 const
char *format, ...)
3835 const
unsigned bit_offset, const
int no_of_bits,
float value, const
unsigned encoding,
3836 const
char *format, ...)
3850 const
unsigned bit_offset, const
int no_of_chars);
3861 const
unsigned bit_offset, const
int no_of_chars);
3879 const
int hf_checksum, const
int hf_checksum_status, struct
expert_field* bad_checksum_expert,
3880 packet_info *pinfo, uint32_t computed_checksum, const
unsigned encoding, const
unsigned flags);
3898 const
int hf_checksum, const
int hf_checksum_status, struct
expert_field* bad_checksum_expert,
3899 packet_info *pinfo, const uint8_t *computed_checksum,
size_t checksum_len, const
unsigned flags);
3913#define PROTO_CHECKSUM_NO_FLAGS 0x00
3914#define PROTO_CHECKSUM_VERIFY 0x01
3915#define PROTO_CHECKSUM_GENERATED 0x02
3916#define PROTO_CHECKSUM_IN_CKSUM 0x04
3917#define PROTO_CHECKSUM_ZERO 0x08
3918#define PROTO_CHECKSUM_NOT_PRESENT 0x10
3928WS_DLL_PUBLIC
unsigned char
3935WS_DLL_PUBLIC
unsigned char
3951 bool display_details,
3953 char *expr,
const int size );
enum ftenum ftenum_t
Convenience typedef for ftenum.
Definition ftypes.h:190
ftenum
Fundamental field value types used throughout the Wireshark dissector framework.
Definition ftypes.h:26
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
WS_DLL_PUBLIC bool proto_registrar_dump_fieldcount(void)
Definition proto.c:12208
WS_DLL_PUBLIC unsigned char proto_check_field_name_lower(const char *field_name)
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_value(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const uint64_t value)
Definition proto.c:13306
#define ITEM_LABEL_LENGTH
Definition proto.h:48
WS_DLL_PUBLIC const char * proto_get_protocol_name(const int proto_id)
Definition proto.c:8781
proto_item * proto_tree_add_time_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, nstime_t *value_ptr, const char *format,...)
Definition proto.c:4997
WS_DLL_PUBLIC void proto_get_frame_protocols(const wmem_list_t *layers, bool *is_ip, bool *is_tcp, bool *is_udp, bool *is_sctp, bool *is_tls, bool *is_rtp, bool *is_lte_rlc)
Definition proto.c:8842
proto_item * proto_tree_add_item_ret_uint16(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint16_t *retval)
Add an FT_UINT16 item to the protocol tree and return its value.
Definition proto.c:3462
WS_DLL_PUBLIC bool proto_is_protocol_enabled(const protocol_t *protocol)
Definition proto.c:8950
struct _item_label_t item_label_t
void proto_tree_set_appendix(proto_tree *tree, tvbuff_t *tvb, unsigned start, const unsigned length)
Definition proto.c:8403
proto_item * proto_tree_add_guid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const e_guid_t *value_ptr, const char *format,...)
Definition proto.c:5306
WS_DLL_PUBLIC void proto_tree_add_split_bits_crumb(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const unsigned bit_offset, const crumb_spec_t *crumb_spec, uint16_t crumb_index)
Definition proto.c:13824
proto_item * proto_tree_add_time_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, const unsigned length, const unsigned encoding, nstime_t *retval, unsigned *endoff, int *err)
Definition proto.c:4682
proto_item * proto_tree_add_item_ret_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, bool *retval)
Add an FT_BOOLEAN item to the protocol tree and return its value.
Definition proto.c:3881
#define FI_URL
Definition proto.h:863
size_t value_pos
Definition proto.h:812
WS_DLL_PUBLIC bool proto_field_is_referenced(proto_tree *tree, int proto_id)
Definition proto.c:982
proto_item * proto_tree_add_item_ret_time_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, wmem_allocator_t *scope, char **retval)
Definition proto.c:4351
void proto_register_subtree_array(int *const *indices, const int num_indices)
Definition proto.c:10125
WS_DLL_PUBLIC proto_item * proto_tree_add_bits_item(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, const unsigned encoding)
Definition proto.c:13469
WS_DLL_PUBLIC bool tree_expanded(int tree_type)
Return whether subtrees of a given type are currently expanded.
proto_item * proto_tree_add_format_wsp_text(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length)
Definition proto.c:1610
uint64_t bitmask
Definition proto.h:778
proto_tree * proto_tree_add_subtree_format(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length, int idx, proto_item **tree_item, const char *format,...)
Definition proto.c:1548
struct _protocol protocol_t
Definition proto.h:100
WS_DLL_PUBLIC proto_item * proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, uint64_t *return_value, const unsigned encoding)
Definition proto.c:13854
WS_DLL_PUBLIC proto_item * proto_tree_add_split_bits_item_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const unsigned bit_offset, const crumb_spec_t *crumb_spec, uint64_t *return_value)
Definition proto.c:13646
WS_DLL_PUBLIC char * proto_list_layers(const packet_info *pinfo)
Definition proto.c:8907
void proto_deregister_field(const int parent, int hf_id)
Definition proto.c:9120
proto_item * proto_tree_add_uint64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value, const char *format,...)
Definition proto.c:6070
WS_DLL_PUBLIC void proto_tree_add_bitmask_list_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const unsigned len, int *const *fields, const unsigned encoding, uint64_t *retval)
Definition proto.c:13356
void proto_add_deregistered_slice(size_t block_size, void *mem_block)
Definition proto.c:9183
proto_item * proto_tree_add_double(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, double value)
Definition proto.c:5865
WS_DLL_PUBLIC header_field_info * proto_get_first_protocol_field(const int proto_id, void **cookie)
Begin iterating over all header fields registered to a protocol.
Definition proto.c:8695
int same_name_prev_id
Definition proto.h:785
WS_DLL_PUBLIC int proto_get_id_by_short_name(const char *short_name)
Definition proto.c:8767
proto_item * proto_tree_add_ipv4_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, ws_in4_addr value, const char *format,...)
Definition proto.c:5129
proto_item * proto_tree_add_checksum(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_checksum, const int hf_checksum_status, struct expert_field *bad_checksum_expert, packet_info *pinfo, uint32_t computed_checksum, const unsigned encoding, const unsigned flags)
Definition proto.c:14251
WS_DLL_PUBLIC int proto_get_next_protocol(void **cookie)
Advance the protocol iterator and return the next protocol ID.
Definition proto.c:8681
proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, unsigned length, const unsigned encoding, GByteArray *retval, unsigned *endoff, int *err)
Definition proto.c:4540
WS_DLL_PUBLIC bool proto_is_pino(const protocol_t *protocol)
Definition proto.c:8943
proto_item * proto_tree_add_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value)
Definition proto.c:5568
proto_item * proto_tree_add_guid(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const e_guid_t *value_ptr)
Definition proto.c:5268
WS_DLL_PUBLIC int proto_get_data_protocol(void *cookie)
Return the protocol ID stored in the current iterator position.
Definition proto.c:8672
proto_item * proto_tree_add_int_bits_format_value(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, int32_t value, const unsigned encoding, const char *format,...)
Definition proto.c:14095
proto_item * proto_tree_add_none_format(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned start, int length, const char *format,...)
Definition proto.c:4752
tvbuff_t * ds_tvb
Definition proto.h:826
proto_item * proto_tree_add_uint_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value, const char *format,...)
Definition proto.c:5978
proto_item * proto_tree_add_item_ret_double(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, double *retval)
Parse a double from the buffer and add it to the tree, returning the item added and the parsed value ...
Definition proto.c:3972
proto_item * proto_tree_add_string_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const char *value, const char *format,...)
Definition proto.c:5506
const char * proto_registrar_get_name(const int n)
Definition proto.c:11594
proto_item * proto_tree_add_format_text(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length)
Definition proto.c:1591
proto_item * proto_tree_add_boolean_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value, const char *format,...)
Definition proto.c:5658
void(* register_handoff)(void)
Routine to call to register dissector handoff.
Definition proto.h:1129
WS_DLL_PUBLIC void proto_registrar_dump_elastic(const char *filter)
Definition proto.c:12309
WS_DLL_PUBLIC void proto_set_decoding(const int proto_id, const bool enabled)
Definition proto.c:9000
WS_DLL_PUBLIC bool proto_name_already_registered(const char *name)
Definition proto.c:8743
void proto_register_field_array(const int parent, hf_register_info *hf, const int num_records)
Definition proto.c:9078
WS_DLL_PUBLIC GPtrArray * proto_find_first_finfo(proto_tree *tree, const int hfindex)
Definition proto.c:11790
proto_item * proto_tree_add_item_ret_uint32(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint32_t *retval)
Add an FT_UINT32 item to the protocol tree and return its value.
Definition proto.c:3442
int proto_registrar_get_length(const int n)
Definition proto.c:11643
WS_DLL_PUBLIC const char * proto_get_protocol_filter_name(const int proto_id)
Definition proto.c:8809
void(* proto_tree_foreach_func)(proto_node *node, void *data)
Callback type for proto_tree_children_foreach().
Definition proto.h:1097
hf_ref_type
Enum for specifying whether a field is referenced by a filter, and if so, how.
Definition proto.h:757
WS_DLL_PUBLIC const char * proto_get_protocol_long_name(const protocol_t *protocol)
Definition proto.c:8801
WS_DLL_PUBLIC void proto_tree_children_foreach(proto_tree *tree, proto_tree_foreach_func func, void *data)
Invoke a callback for each direct child of a proto_tree node.
Definition proto.c:848
enum ftenum proto_registrar_get_ftype(const int n)
Definition proto.c:11612
proto_item * proto_tree_add_int_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int32_t value, const char *format,...)
Definition proto.c:6161
#define FI_RESET_FLAG(fi, flag)
Definition proto.h:886
WS_DLL_PUBLIC void proto_tree_add_bitmask_list_value(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const unsigned len, int *const *fields, const uint64_t value)
Definition proto.c:13372
void proto_initialize_all_prefixes(void)
Definition proto.c:1081
int proto_layer_num
Definition proto.h:829
WS_DLL_PUBLIC int hfinfo_bitshift(const header_field_info *hfinfo)
Return the number of bits to right-shift a field's bitmask to obtain its least-significant bit positi...
Definition proto.c:11154
proto_item * proto_tree_add_double_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, double value, const char *format,...)
Definition proto.c:5884
proto_item * proto_tree_add_int64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int64_t value, const char *format,...)
Definition proto.c:6284
proto_item * proto_tree_add_uint_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value, const char *format,...)
Definition proto.c:5960
WS_DLL_PUBLIC proto_item * proto_item_get_parent(const proto_item *pi)
Definition proto.c:8306
int proto_registrar_get_id_byname(const char *field_name)
Definition proto.c:1165
proto_item * proto_tree_add_float_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, float value, const char *format,...)
Definition proto.c:5837
int display
Definition proto.h:773
proto_item * proto_tree_add_ts_23_038_7bits_packed_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_chars)
Definition proto.c:14183
header_field_info * proto_registrar_get_byalias(const char *alias_name)
Definition proto.c:1134
struct _mac_hf_list_t mac_hf_list_t
proto_checksum_enum_e
Checksum verification result for a protocol field.
Definition proto.h:3905
WS_DLL_PUBLIC GPtrArray * proto_all_finfos(proto_tree *tree)
Definition proto.c:11820
proto_item * proto_tree_add_oid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value_ptr, const char *format,...)
Definition proto.c:5383
WS_DLL_PUBLIC void proto_execute_in_directory(const char *dir, proto_execute_in_directory_func func, void *param)
Definition proto.c:809
proto_item * proto_tree_add_time(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const nstime_t *value_ptr)
Definition proto.c:4978
proto_item * proto_tree_add_text_internal(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length, const char *format,...)
Definition proto.c:1482
WS_DLL_PUBLIC size_t proto_registrar_get_count(struct proto_registrar_stats *stats)
Definition proto.c:11652
void proto_item_fill_label(const field_info *fi, char *label_str, size_t *value_pos)
Definition proto.c:10291
proto_item * proto_tree_add_item_ret_int(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, int32_t *retval)
Definition proto.c:3309
WS_DLL_PUBLIC void proto_heuristic_dissector_foreach(const protocol_t *protocol, GFunc func, void *user_data)
Definition proto.c:8833
int total_layer_num
Definition proto.h:828
proto_tree * proto_tree_get_parent_tree(proto_tree *tree)
Definition proto.c:8333
int proto_register_protocol_in_name_only(const char *name, const char *short_name, const char *filter_name, int parent_proto, enum ftenum field_type)
Definition proto.c:8541
struct _proto_node proto_node
proto_item * proto_tree_add_ipv6_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const ws_in6_addr *value_ptr, const char *format,...)
Definition proto.c:5215
WS_DLL_PUBLIC char * proto_construct_match_selected_string(const field_info *finfo, struct epan_dissect *edt)
Definition proto.c:12819
WS_DLL_PUBLIC const char * proto_get_protocol_short_name(const protocol_t *protocol)
Definition proto.c:8793
WS_DLL_PUBLIC char * proto_find_undecoded_data(proto_tree *tree, unsigned length)
Definition proto.c:11906
void proto_pre_init(void)
Pre-initialise the proto subsystem memory structures.
Definition proto.c:568
int proto_item_fill_display_label(const field_info *finfo, char *display_label_str, const int label_str_size)
Definition proto.c:7241
WS_DLL_PUBLIC bool proto_is_protocol_enabled_by_default(const protocol_t *protocol)
Definition proto.c:8964
WS_DLL_PUBLIC field_info * proto_find_field_from_offset(proto_tree *tree, unsigned offset, tvbuff_t *tvb)
Definition proto.c:11867
proto_item * proto_tree_add_item_ret_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, wmem_allocator_t *scope, const uint8_t **retval)
Definition proto.c:4213
void(* register_protoinfo)(void)
Routine to call to register protocol information.
Definition proto.h:1124
WS_DLL_PUBLIC void proto_registrar_dump_values(void)
Definition proto.c:11993
void proto_item_set_len(proto_item *pi, const unsigned length)
Definition proto.c:8084
proto_item * proto_tree_add_int64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int64_t value, const char *format,...)
Definition proto.c:6238
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_len(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const unsigned len, const int hf_hdr, const int ett, int *const *fields, struct expert_field *exp, const unsigned encoding)
Definition proto.c:13394
WS_DLL_PUBLIC void tree_expanded_set(int tree_type, bool value)
Set the expansion state for subtrees of a given type.
proto_item * proto_tree_add_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value)
Definition proto.c:5639
unsigned crumb_bit_offset
Definition proto.h:844
void proto_item_set_bits_offset_len(proto_item *ti, int bits_offset, int bits_len)
Definition proto.c:8154
#define FI_GET_FLAG(fi, flag)
Definition proto.h:878
WS_DLL_PUBLIC uint8_t proto_get_layer_num(const packet_info *pinfo, const int proto_id)
Definition proto.c:8930
proto_node proto_item
Definition proto.h:922
proto_item * proto_tree_add_item_ret_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, int *lenretval)
Add an item to a protocol tree and return the length of the parsed field.
Definition proto.c:4514
proto_item * proto_tree_add_bytes_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const uint8_t *start_ptr, const char *format,...)
Definition proto.c:4909
const void * strings
Definition proto.h:774
proto_item * proto_tree_add_uint64_bits_format_value(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, uint64_t value, const unsigned encoding, const char *format,...)
Definition proto.c:14040
int proto_registrar_get_parent(const int n)
Definition proto.c:11621
proto_item * proto_tree_add_ipxnet(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value)
Definition proto.c:5045
proto_item * proto_tree_add_uint64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value, const char *format,...)
Definition proto.c:6052
WS_DLL_PUBLIC header_field_info * proto_get_next_protocol_field(const int proto_id, void **cookie)
Advance the field iterator and return the next header field.
Definition proto.c:8707
WS_DLL_PUBLIC proto_tree * proto_item_add_subtree(proto_item *pi, const int idx) G_GNUC_WARN_UNUSED_RESULT
Definition proto.c:8276
unsigned appendix_length
Definition proto.h:822
proto_item * proto_tree_add_item_new(proto_tree *tree, header_field_info *hfinfo, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding)
Definition proto.c:4434
proto_item * proto_tree_add_item_ret_uint8(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint8_t *retval)
Add an FT_UINT8 item to the protocol tree and return its value.
Definition proto.c:3450
proto_item * proto_tree_add_time_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, nstime_t *value_ptr, const char *format,...)
Definition proto.c:5015
header_field_info * proto_registrar_get_nth(unsigned hfindex)
Definition proto.c:1006
void(* proto_execute_in_directory_func)(void *param)
Callback type for a function executed within a specific directory context.
Definition proto.h:1185
#define FI_HIDDEN
Definition proto.h:858
proto_item * proto_tree_add_int64_bits_format_value(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, int64_t value, const unsigned encoding, const char *format,...)
Definition proto.c:14128
WS_DLL_PUBLIC proto_item * proto_item_get_parent_nth(proto_item *pi, int gen)
Definition proto.c:8313
uint32_t flags
Definition proto.h:824
WS_DLL_PUBLIC unsigned char proto_check_field_name(const char *field_name)
Check if a given string is a valid protocol field name.
WS_DLL_PUBLIC proto_item * proto_tree_add_debug_text(proto_tree *tree, const char *format,...)
Definition proto.c:1570
proto_item * proto_tree_add_uint(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value)
Definition proto.c:5930
void proto_item_prepend_text(proto_item *pi, const char *format,...)
Definition proto.c:8007
proto_tree * proto_tree_add_subtree(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length, int idx, proto_item **tree_item, const char *text)
Definition proto.c:1540
proto_item * proto_tree_add_guid_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const e_guid_t *value_ptr, const char *format,...)
Definition proto.c:5287
const header_field_info * hfinfo
Definition proto.h:818
WS_DLL_PUBLIC GPtrArray * proto_get_finfo_ptr_array(const proto_tree *tree, const int hfindex)
Definition proto.c:11700
proto_item * proto_tree_add_item_ret_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, float *retval)
Parse a float from the buffer and add it to the tree, returning the item added and the parsed value v...
Definition proto.c:3933
proto_item * proto_tree_add_ipv4_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, ws_in4_addr value, const char *format,...)
Definition proto.c:5147
unsigned start
Definition proto.h:819
proto_item * proto_tree_add_item_ret_string_and_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, wmem_allocator_t *scope, const uint8_t **retval, int *lenretval)
Definition proto.c:4142
proto_item * proto_tree_add_item_ret_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint64_t *retval)
Add an FT_UINT64 item to the protocol tree and return its value.
Definition proto.c:3698
proto_item * proto_tree_add_boolean_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value, const char *format,...)
Definition proto.c:5676
void proto_tree_set_fake_protocols(proto_tree *tree, bool fake_protocols)
Definition proto.c:968
proto_item * proto_tree_add_oid_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value_ptr, const char *format,...)
Definition proto.c:5364
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_with_flags_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const unsigned encoding, const int flags, uint64_t *retval)
Definition proto.c:13246
bool proto_deregister_protocol(const char *short_name)
Definition proto.c:8600
WS_DLL_PUBLIC bool proto_is_frame_protocol(const wmem_list_t *layers, const char *proto_name)
Definition proto.c:8882
size_t protocol_count
Definition proto.h:3043
const char * name
Definition proto.h:770
void proto_add_deregistered_data(void *data)
Definition proto.c:9177
field_display_e
Enum for specifying the display format of a field.
Definition proto.h:681
void proto_item_set_end(proto_item *pi, tvbuff_t *tvb, unsigned end)
Definition proto.c:8106
proto_item * proto_tree_add_item_ret_display_string_and_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, wmem_allocator_t *scope, char **retval, int *lenretval)
Definition proto.c:4223
proto_item * proto_tree_add_ipxnet_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value, const char *format,...)
Definition proto.c:5082
const char * proto_registrar_get_abbrev(const int n)
Definition proto.c:11603
void(* prefix_initializer_t)(const char *match)
Definition proto.h:2921
proto_item * proto_tree_add_bytes_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const uint8_t *start_ptr, const char *format,...)
Definition proto.c:4929
proto_item * proto_tree_add_int(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int32_t value)
Definition proto.c:6115
item_label_t * rep
Definition proto.h:825
WS_DLL_PUBLIC proto_item * proto_tree_add_uint_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, uint32_t value, const unsigned encoding, const char *format,...)
Definition proto.c:14007
bool proto_tree_set_visible(proto_tree *tree, bool visible)
Definition proto.c:958
proto_item * proto_tree_add_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const ws_in6_addr *value)
Definition proto.c:5177
proto_item * proto_tree_add_float_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, float value, const char *format,...)
Definition proto.c:5819
int * p_id
Definition proto.h:805
size_t value_len
Definition proto.h:813
void proto_cleanup(void)
Release all memory allocated by the proto subsystem.
Definition proto.c:764
proto_item * proto_tree_add_protocol_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const char *format,...)
Definition proto.c:4812
proto_item * proto_tree_add_item_ret_display_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, wmem_allocator_t *scope, char **retval)
Definition proto.c:4339
WS_DLL_PUBLIC int proto_get_id_by_filter_name(const char *filter_name)
Definition proto.c:8753
WS_DLL_PUBLIC WS_NORETURN void proto_report_dissector_bug(const char *format,...)
Definition proto.c:1631
bool(* proto_tree_traverse_func)(proto_node *node, void *data)
Callback type for depth-first proto_tree traversal functions.
Definition proto.h:1105
void proto_add_heuristic_dissector(protocol_t *protocol, const char *short_name)
Definition proto.c:8819
WS_DLL_PUBLIC proto_tree * proto_item_get_subtree(proto_item *pi)
Definition proto.c:8294
void proto_tree_free(proto_tree *tree)
Free a protocol tree and all of its nodes.
Definition proto.c:932
hf_ref_type ref_type
Definition proto.h:784
WS_DLL_PUBLIC void proto_registrar_dump_fields(void)
Definition proto.c:12469
WS_DLL_PUBLIC int proto_get_first_protocol(void **cookie)
Begin iterating over all registered protocols.
Definition proto.c:8660
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const unsigned encoding)
Definition proto.c:13234
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_value_with_flags(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const uint64_t value, const int flags)
Definition proto.c:13315
void proto_tree_move_item(proto_tree *tree, proto_item *fixed_item, proto_item *item_to_move)
Definition proto.c:8356
proto_item * proto_tree_add_ascii_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_chars)
Definition proto.c:14211
char * proto_item_get_display_repr(wmem_allocator_t *scope, proto_item *pi)
Definition proto.c:8163
WS_DLL_PUBLIC bool proto_can_match_selected(const field_info *finfo, struct epan_dissect *edt)
Definition proto.c:12807
proto_item * proto_tree_add_item_ret_varint(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint64_t *retval, int *lenretval)
Add a variable-length integer item to the protocol tree and return its value and consumed byte count.
Definition proto.c:3823
WS_DLL_PUBLIC GPtrArray * proto_find_finfo(proto_tree *tree, const int hfindex)
Definition proto.c:11771
int parent
Definition proto.h:783
proto_item * proto_tree_add_item_ret_int64(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, int64_t *retval)
Add an FT_INT64 item to the protocol tree and return its value.
Definition proto.c:3763
WS_DLL_PUBLIC void proto_disable_by_default(const int proto_id)
Definition proto.c:8988
void proto_init(GSList *register_all_plugin_protocols_list, GSList *register_all_plugin_handoffs_list, register_entity_func register_func, register_entity_func handoff_func, register_cb cb, void *client_data)
Initialise the proto subsystem and run all registration callbacks.
Definition proto.c:595
proto_item * proto_tree_add_text_valist_internal(proto_tree *tree, tvbuff_t *tvb, unsigned start, int length, const char *format, va_list ap)
Definition proto.c:1512
WS_DLL_PUBLIC void proto_item_set_text(proto_item *pi, const char *format,...)
Definition proto.c:7926
struct _header_field_info header_field_info
Definition proto.h:765
unsigned proto_item_get_len(const proto_item *pi)
Definition proto.c:8131
proto_item * proto_tree_add_ether_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value, const char *format,...)
Definition proto.c:5605
void proto_deregister_all_fields_with_prefix(const int parent, const char *prefix)
Definition proto.c:9151
proto_item * proto_tree_get_parent(proto_tree *tree)
Definition proto.c:8326
proto_item * proto_tree_add_ether_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value, const char *format,...)
Definition proto.c:5587
proto_item * proto_tree_add_item_ret_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint8_t *retval)
Parse an ethernet address from the buffer and add it to the tree, writing the value to the pointer sp...
Definition proto.c:4103
WS_DLL_PUBLIC void proto_register_plugin(const proto_plugin *plugin)
Register a dissector plugin with the plugin system.
proto_item * proto_tree_add_item_ret_uint(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, uint32_t *retval)
Add an FT_UINT32 (or compatible uint) item to the protocol tree and return its value as a uint32_t.
Definition proto.c:3374
proto_item * proto_tree_add_item_ret_ipv4(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, ws_in4_addr *retval)
Add an FT_IPv4 item to the protocol tree and return its value.
Definition proto.c:4011
WS_DLL_PUBLIC void proto_set_cant_toggle(const int proto_id)
Definition proto.c:9059
WS_DLL_PUBLIC bool proto_tracking_interesting_fields(const proto_tree *tree)
Definition proto.c:11713
void proto_register_prefix(const char *prefix, prefix_initializer_t pi)
Definition proto.c:1064
enum ftenum type
Definition proto.h:772
int proto_register_protocol(const char *name, const char *short_name, const char *filter_name)
Definition proto.c:8478
WS_DLL_PUBLIC void proto_registrar_dump_protocols(void)
Definition proto.c:11930
size_t deregistered_count
Definition proto.h:3044
proto_item * proto_tree_add_checksum_bytes(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_checksum, const int hf_checksum_status, struct expert_field *bad_checksum_expert, packet_info *pinfo, const uint8_t *computed_checksum, size_t checksum_len, const unsigned flags)
Definition proto.c:14361
const char * proto_custom_set(proto_tree *tree, GSList *field_id, int occurrence, bool display_details, char *result, char *expr, const int size)
Set the column text for a custom column.
Definition proto.c:7534
bool proto_check_for_protocol_or_field(const proto_tree *tree, const int id)
Definition proto.c:11682
proto_item * proto_tree_add_ipv4(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, ws_in4_addr value)
Definition proto.c:5110
proto_item * proto_tree_add_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint64_t value)
Definition proto.c:6023
proto_item * proto_tree_add_string_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const char *value, const char *format,...)
Definition proto.c:5487
const char * abbrev
Definition proto.h:771
char * proto_custom_get_filter(struct epan_dissect *edt, GSList *field_id, int occurrence)
Construct a display filter string for a custom column.
Definition proto.c:7770
const char * blurb
Definition proto.h:779
proto_tree * proto_tree_create_root(packet_info *pinfo)
Allocate and initialise a new protocol tree root node.
Definition proto.c:8177
size_t same_name_count
Definition proto.h:3045
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_with_flags(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const unsigned encoding, const int flags)
Definition proto.c:13281
proto_item * proto_tree_add_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const char *value)
Definition proto.c:5448
proto_tree * proto_tree_get_root(proto_tree *tree)
Definition proto.c:8346
proto_item * proto_tree_add_bytes(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int length, const uint8_t *start_ptr)
Definition proto.c:4857
WS_DLL_PUBLIC bool proto_registrar_dump_field_completions(const char *prefix)
Dump all protocol and field abbreviations that start with a given prefix to standard output.
Definition proto.c:12580
WS_DLL_PUBLIC bool proto_can_toggle_protocol(const int proto_id)
Definition proto.c:8975
WS_DLL_PUBLIC void proto_registrar_dump_ftypes(void)
Dump all registered field types and their descriptive names to standard output.
Definition proto.c:12645
proto_item * proto_tree_add_float_bits_format_value(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, float value, const unsigned encoding, const char *format,...)
Definition proto.c:14073
proto_item * proto_tree_add_eui64(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint64_t value)
Definition proto.c:6305
proto_item * proto_tree_add_eui64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint64_t value, const char *format,...)
Definition proto.c:6342
WS_DLL_PUBLIC protocol_t * find_protocol_by_id(const int proto_id)
Definition proto.c:8722
WS_DLL_PUBLIC void proto_reenable_all(void)
Definition proto.c:9041
bool proto_registrar_is_protocol(const int n)
Definition proto.c:11630
WS_DLL_PUBLIC void proto_disable_all(void)
Definition proto.c:9011
uint8_t crumb_bit_length
Definition proto.h:845
proto_item * proto_tree_add_double_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, double value, const char *format,...)
Definition proto.c:5902
proto_item * proto_tree_add_int_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int32_t value, const char *format,...)
Definition proto.c:6143
proto_item * proto_tree_add_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding)
Append a decoded field to a protocol tree using a registered header-field index.
Definition proto.c:4455
header_field_info * proto_registrar_get_byname(const char *field_name)
Definition proto.c:1092
void proto_tree_reset(proto_tree *tree)
Reset a protocol tree to its initial empty state, retaining the root node and its associated tree dat...
Definition proto.c:903
#define PITEM_FINFO(proto_item)
Definition proto.h:990
WS_DLL_PUBLIC const char * proto_field_display_to_string(int field_display)
Convert a field display value to its string representation.
Definition proto.c:9388
void proto_free_deregistered_fields(void)
Definition proto.c:9339
WS_DLL_PUBLIC void proto_tree_add_bitmask_list(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const unsigned len, int *const *fields, const unsigned encoding)
Definition proto.c:13343
int id
Definition proto.h:782
#define FI_GENERATED
Definition proto.h:861
unsigned length
Definition proto.h:820
#define FI_SET_FLAG(fi, flag)
Definition proto.h:880
WS_DLL_PUBLIC proto_item * proto_tree_add_mac48_detail(const mac_hf_list_t *list_specific, const mac_hf_list_t *list_generic, int idx, tvbuff_t *tvb, proto_tree *tree, unsigned offset)
Definition proto.c:6382
proto_item * proto_tree_add_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, float value)
Definition proto.c:5800
proto_item * proto_tree_add_oid(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint8_t *value_ptr)
Definition proto.c:5345
proto_item * proto_tree_add_int64(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, int64_t value)
Definition proto.c:6210
int tree_type
Definition proto.h:823
WS_DLL_PUBLIC int proto_get_id(const protocol_t *protocol)
Definition proto.c:8737
header_field_info hfinfo
Definition proto.h:806
void proto_register_alias(const int proto_id, const char *alias_name)
Definition proto.c:8642
proto_item * proto_tree_add_eui64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const uint64_t value, const char *format,...)
Definition proto.c:6324
proto_item * proto_tree_add_item_new_ret_length(proto_tree *tree, header_field_info *hfinfo, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, int *lenretval)
Definition proto.c:4469
proto_item * proto_tree_add_bytes_with_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, int tvbuff_length, const uint8_t *start_ptr, int ptr_length)
Definition proto.c:4885
proto_item * proto_tree_add_ipxnet_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, uint32_t value, const char *format,...)
Definition proto.c:5064
proto_item * proto_tree_add_ipv6_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, unsigned start, unsigned length, const ws_in6_addr *value_ptr, const char *format,...)
Definition proto.c:5196
void proto_free_field_strings(ftenum_t field_type, unsigned int field_display, const void *field_strings)
Definition proto.c:9193
proto_item * proto_tree_add_boolean_bits_format_value(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const unsigned bit_offset, const int no_of_bits, uint64_t value, const unsigned encoding, const char *format,...)
Definition proto.c:14161
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_text(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const unsigned len, const char *name, const char *fallback, const int ett, int *const *fields, const unsigned encoding, const int flags)
Definition proto.c:13446
unsigned appendix_start
Definition proto.h:821
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const unsigned offset, const int hf_hdr, const int ett, int *const *fields, const unsigned encoding, uint64_t *retval)
Definition proto.c:13208
void proto_item_append_text(proto_item *pi, const char *format,...)
Definition proto.c:7949
header_field_info * same_name_next
Definition proto.h:786
proto_item * proto_tree_add_item_ret_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb, const unsigned start, int length, const unsigned encoding, ws_in6_addr *addr)
Parse an ipv6 address from the buffer and add it to the tree, writing the value to the pointer specif...
Definition proto.c:4064
@ HF_REF_TYPE_INDIRECT
Definition proto.h:759
@ HF_REF_TYPE_NONE
Definition proto.h:758
@ HF_REF_TYPE_DIRECT
Definition proto.h:760
@ HF_REF_TYPE_PRINT
Definition proto.h:761
@ PROTO_CHECKSUM_E_GOOD
Definition proto.h:3907
@ PROTO_CHECKSUM_E_ILLEGAL
Definition proto.h:3910
@ PROTO_CHECKSUM_E_BAD
Definition proto.h:3906
@ PROTO_CHECKSUM_E_NOT_PRESENT
Definition proto.h:3909
@ PROTO_CHECKSUM_E_UNVERIFIED
Definition proto.h:3908
@ ABSOLUTE_TIME_DOY_UTC
Definition proto.h:714
@ BASE_PT_UDP
Definition proto.h:703
@ BASE_HEX_DEC
Definition proto.h:689
@ BASE_HEX
Definition proto.h:686
@ ABSOLUTE_TIME_NTP_UTC
Definition proto.h:715
@ BASE_EXP
Definition proto.h:691
@ ABSOLUTE_TIME_UTC
Definition proto.h:713
@ BASE_DEC
Definition proto.h:685
@ ABSOLUTE_TIME_UNIX
Definition proto.h:716
@ BASE_PT_TCP
Definition proto.h:704
@ BASE_DEC_HEX
Definition proto.h:688
@ BASE_OUI
Definition proto.h:709
@ SEP_COLON
Definition proto.h:696
@ BASE_PT_SCTP
Definition proto.h:706
@ BASE_NETMASK
Definition proto.h:700
@ ABSOLUTE_TIME_LOCAL
Definition proto.h:712
@ BASE_PT_DCCP
Definition proto.h:705
@ BASE_STR_WSP
Definition proto.h:719
@ BASE_NONE
Definition proto.h:682
@ SEP_DOT
Definition proto.h:694
@ SEP_DASH
Definition proto.h:695
@ SEP_SPACE
Definition proto.h:697
@ BASE_OCT
Definition proto.h:687
@ BASE_CUSTOM
Definition proto.h:690
struct _wmem_list_t wmem_list_t
Opaque type representing a scoped, doubly-linked list in the wmem system.
Definition wmem_list.h:42
struct _wmem_allocator_t wmem_allocator_t
Definition wmem_core.h:44
struct _e_guid_t e_guid_t
Represents a GUID/UUID value; may be larger than GUID_LEN so must not be used to directly overlay pac...
struct e_in6_addr ws_in6_addr
Represents a 128-bit IPv6 address.
uint32_t ws_in4_addr
Represents a 32-bit IPv4 address in network byte order.
Definition inet_addr.h:22
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
Definition packet-bt-dht.c:97
This structure describes one segment of a split-bits item.
Definition proto.h:843
Holds all state for the dissection of a single byte array, including session, buffer,...
Definition epan_dissect.h:28
proto_tree * tree
Definition epan_dissect.h:31
Pairs an expert info index with its associated header field index for registration and display.
Definition expert.h:41
Descriptor for a dissector plugin's registration entry points.
Definition proto.h:1120
Holds aggregate statistics about the state of the protocol registrar.
Definition proto.h:3042
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.