Wireshark  4.3.0
The Wireshark network protocol analyzer
proto.h
Go to the documentation of this file.
1 /* proto.h
2  * Definitions for protocol display
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 
23 #ifndef __PROTO_H__
24 #define __PROTO_H__
25 
26 #include <stdarg.h>
27 
28 #include <glib.h>
29 
30 #include <epan/wmem_scopes.h>
31 
32 #include "ipv4.h"
33 #include "wsutil/nstime.h"
34 #include "tvbuff.h"
35 #include "value_string.h"
36 #include "tfs.h"
37 #include "packet_info.h"
38 #include "ftypes/ftypes.h"
39 #include "register.h"
40 #include "ws_symbol_export.h"
41 #include "ws_attributes.h"
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif /* __cplusplus */
46 
56 WS_DLL_PUBLIC int hf_text_only;
57 
59 #define ITEM_LABEL_LENGTH 240
60 
61 #define ITEM_LABEL_UNKNOWN_STR "Unknown"
62 
63 struct expert_field;
64 
65 /* Type-check that 'x' is compatible with 'type', should give compiler warnings otherwise. */
66 #define cast_same(type, x) (0 ? (type)0 : (x))
67 
69 #define VALS(x) (cast_same(const struct _value_string*, (x)))
70 
72 #define VALS64(x) (cast_same(const struct _val64_string*, (x)))
73 
75 #define VALS_EXT_PTR(x) (cast_same(value_string_ext*, (x)))
76 
78 #define TFS(x) (cast_same(const struct true_false_string*, (x)))
79 
80 typedef void (*custom_fmt_func_t)(gchar *, guint32);
81 
82 typedef void (*custom_fmt_func_64_t)(gchar *, guint64);
83 
84 typedef void (*custom_fmt_func_double_t)(gchar *, double);
85 
93 #define CF_FUNC(x) ((const void *) (gsize) (x))
94 
97 #define RVALS(x) (cast_same(const struct _range_string*, (x)))
98 
100 #define FRAMENUM_TYPE(x) GINT_TO_POINTER(x)
101 
102 struct _protocol;
103 
105 typedef struct _protocol protocol_t;
106 
117 WS_DLL_PUBLIC WS_NORETURN
118 void proto_report_dissector_bug(const char *format, ...)
119  G_GNUC_PRINTF(1, 2);
120 
121 #define REPORT_DISSECTOR_BUG(...) \
122  proto_report_dissector_bug(__VA_ARGS__)
123 
127 #ifdef _MSC_VER
128 /* XXX - Is there a way to say "quit checking at this point"? */
129 #define __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression) \
130  ; __analysis_assume(expression);
131 #else
132 #define __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
133 #endif
134 
146 #define __DISSECTOR_ASSERT_STRINGIFY(s) # s
147 
148 #define __DISSECTOR_ASSERT(expression, file, lineno) \
149  (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"%s\"", \
150  file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression)))
151 
152 #define __DISSECTOR_ASSERT_HINT(expression, file, lineno, hint) \
153  (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"%s\" (%s)", \
154  file, lineno, __DISSECTOR_ASSERT_STRINGIFY(expression), hint))
155 
156 #define DISSECTOR_ASSERT(expression) \
157  ((void) ((expression) ? (void)0 : \
158  __DISSECTOR_ASSERT (expression, __FILE__, __LINE__))) \
159  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
160 
168 #define DISSECTOR_ASSERT_HINT(expression, hint) \
169  ((void) ((expression) ? (void)0 : \
170  __DISSECTOR_ASSERT_HINT (expression, __FILE__, __LINE__, hint))) \
171  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(expression)
172 
173 #if 0
174 /* win32: using a debug breakpoint (int 3) can be very handy while debugging,
175  * as the assert handling of GTK/GLib is currently not very helpful */
176 #define DISSECTOR_ASSERT(expression) \
177 { if(!(expression)) _asm { int 3}; }
178 #endif
179 
188 #define DISSECTOR_ASSERT_NOT_REACHED() \
189  (REPORT_DISSECTOR_BUG("%s:%u: failed assertion \"DISSECTOR_ASSERT_NOT_REACHED\"", \
190  __FILE__, __LINE__))
191 
211 #define __DISSECTOR_ASSERT_CMPINT(a, op, b, type, fmt) \
212  (REPORT_DISSECTOR_BUG("%s:%u: failed assertion " #a " " #op " " #b " (" fmt " " #op " " fmt ")", \
213  __FILE__, __LINE__, (type)a, (type)b))
214 
215 #define DISSECTOR_ASSERT_CMPINT(a, op, b) \
216  ((void) ((a op b) ? (void)0 : \
217  __DISSECTOR_ASSERT_CMPINT (a, op, b, int64_t, "%" PRId64))) \
218  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
219 
225 #define DISSECTOR_ASSERT_CMPUINT(a, op, b) \
226  ((void) ((a op b) ? (void)0 : \
227  __DISSECTOR_ASSERT_CMPINT (a, op, b, uint64_t, "%" PRIu64))) \
228  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
229 
233 #define DISSECTOR_ASSERT_CMPUINTHEX(a, op, b) \
234  ((void) ((a op b) ? (void)0 : \
235  __DISSECTOR_ASSERT_CMPINT (a, op, b, uint64_t, "0x%" PRIX64))) \
236  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(a op b)
237 
238 /*
239  * This is similar to DISSECTOR_ASSERT(hfinfo->type == type) except that
240  * it will report the name of the field with the wrong type as well as
241  * the type.
242  *
243  * @param hfinfo The hfinfo for the field being tested
244  * @param type The type it's expected to have
245  */
246 #define __DISSECTOR_ASSERT_FIELD_TYPE(hfinfo, t) \
247  (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type "#t, \
248  __FILE__, __LINE__, (hfinfo)->abbrev))
249 
250 #define DISSECTOR_ASSERT_FIELD_TYPE(hfinfo, t) \
251  ((void) (((hfinfo)->type == t) ? (void)0 : \
252  __DISSECTOR_ASSERT_FIELD_TYPE ((hfinfo), t))) \
253  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT((hfinfo)->type == t)
254 
255 #define DISSECTOR_ASSERT_FIELD_TYPE_IS_INTEGRAL(hfinfo) \
256  ((void) ((FT_IS_INTEGER((hfinfo)->type)) ? (void)0 : \
257  REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_CHAR or an FT_{U}INTn type", \
258  __FILE__, __LINE__, (hfinfo)->abbrev))) \
259  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(FT_IS_INTEGER((hfinfo)->type))
260 
261 #define __DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo) \
262  (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_STRING, FT_STRINGZ, FT_STRINGZPAD, FT_STRINGZTRUNC, or FT_UINT_STRING", \
263  __FILE__, __LINE__, (hfinfo)->abbrev))
264 
265 #define DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING(hfinfo) \
266  ((void) (FT_IS_STRING((hfinfo)->type) ? (void)0 : \
267  __DISSECTOR_ASSERT_FIELD_TYPE_IS_STRING ((hfinfo)))) \
268  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT(FT_IS_STRING((hfinfo)->type))
269 
270 #define __DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME(hfinfo) \
271  (REPORT_DISSECTOR_BUG("%s:%u: field %s is not of type FT_ABSOLUTE_TIME or FT_RELATIVE_TIME", \
272  __FILE__, __LINE__, (hfinfo)->abbrev))
273 
274 #define DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME(hfinfo) \
275  ((void) (((hfinfo)->type == FT_ABSOLUTE_TIME || \
276  (hfinfo)->type == FT_RELATIVE_TIME) ? (void)0 : \
277  __DISSECTOR_ASSERT_FIELD_TYPE_IS_TIME ((hfinfo)))) \
278  __DISSECTOR_ASSERT_STATIC_ANALYSIS_HINT((hfinfo)->type == FT_ABSOLUTE_TIME || \
279  (hfinfo)->type == FT_RELATIVE_TIME)
280 
281 /*
282  * Encoding flags that apply to multiple data types.
283  */
284 /*
285  * The encoding of a field of a particular type may involve more
286  * than just whether it's big-endian or little-endian and its size.
287  *
288  * For integral values, that's it, as 99.9999999999999% of the machines
289  * out there are 2's complement binary machines with 8-bit bytes,
290  * so the protocols out there expect that and, for example, any Unisys
291  * 2200 series machines out there just have to translate between 2's
292  * complement and 1's complement (and nobody's put any IBM 709x's on
293  * any networks lately :-)).
294  *
295  * However:
296  *
297  * for floating-point numbers, in addition to IEEE decimal
298  * floating-point, there's also IBM System/3x0 and PDP-11/VAX
299  * floating-point - most protocols use IEEE binary, but DCE RPC
300  * can use other formats if that's what the sending host uses;
301  *
302  * for character strings, there are various character encodings
303  * (various ISO 646 sets, ISO 8859/x, various other national
304  * standards, various DOS and Windows encodings, various Mac
305  * encodings, UTF-8, UTF-16, other extensions to ASCII, EBCDIC,
306  * etc.);
307  *
308  * for absolute times, there's UNIX time_t, UNIX time_t followed
309  * by 32-bit microseconds, UNIX time_t followed by 32-bit
310  * nanoseconds, DOS date/time, Windows FILETIME, NTP time, etc..
311  *
312  * We might also, in the future, want to allow a field specifier to
313  * indicate the encoding of the field, or at least its default
314  * encoding, as most fields in most protocols always use the
315  * same encoding (although that's not true of all fields, so we
316  * still need to be able to specify that at run time).
317  *
318  * So, for now, we define ENC_BIG_ENDIAN and ENC_LITTLE_ENDIAN as
319  * bit flags, to be combined, in the future, with other information
320  * to specify the encoding in the last argument to
321  * proto_tree_add_item(), and possibly to specify in a field
322  * definition (e.g., ORed in with the type value).
323  *
324  * Currently, proto_tree_add_item() treats its last argument as a
325  * Boolean - if it's zero, the field is big-endian, and if it's non-zero,
326  * the field is little-endian - and other code in epan/proto.c does
327  * the same. We therefore define ENC_BIG_ENDIAN as 0x00000000 and
328  * ENC_LITTLE_ENDIAN as 0x80000000 - we're using the high-order bit
329  * so that we could put a field type and/or a value such as a character
330  * encoding in the lower bits.
331  */
332 #define ENC_BIG_ENDIAN 0x00000000
333 #define ENC_LITTLE_ENDIAN 0x80000000
334 
335 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
336  #define ENC_HOST_ENDIAN ENC_LITTLE_ENDIAN
337  #define ENC_ANTI_HOST_ENDIAN ENC_BIG_ENDIAN
338 #else
339  #define ENC_HOST_ENDIAN ENC_BIG_ENDIAN
340  #define ENC_ANTI_HOST_ENDIAN ENC_LITTLE_ENDIAN
341 #endif
342 
343 /*
344  * For protocols (FT_PROTOCOL), aggregate items with subtrees (FT_NONE),
345  * opaque byte-array fields (FT_BYTES), and other fields where there
346  * is no choice of encoding (either because it's "just a bucket
347  * of bytes" or because the encoding is completely fixed), we
348  * have ENC_NA (for "Not Applicable").
349  */
350 #define ENC_NA 0x00000000
351 
352 /*
353  * Encoding for character strings - and for character-encoded values
354  * for non-string types.
355  *
356  * Historically, the only place the representation mattered for strings
357  * was with FT_UINT_STRINGs, where we had FALSE for the string length
358  * being big-endian and TRUE for it being little-endian.
359  *
360  * We now have encoding values for the character encoding. The encoding
361  * values are encoded in all but the top bit (which is the byte-order
362  * bit, required for FT_UINT_STRING and for UCS-2 and UTF-16 strings)
363  * and the bottom bit (which we ignore for now so that programs that
364  * pass TRUE for the encoding just do ASCII).
365  *
366  * For ENC_ASCII, we map ASCII characters with the high bit set to the UTF-8
367  * REPLACEMENT CHARACTER, and do the same for ENC_UTF_8 with invalid UTF-8
368  * sequences. We should also map 0x00 to that as well - null-terminated and
369  * null-padded strings never have NULs in them, but counted strings might.
370  * Either that, or strings should be counted, not null-terminated. Note
371  * that conversion of ASCII and UTF-8 can change the length of the string,
372  * as with any other encoding, due to REPLACEMENT CHARACTERs.
373  *
374  * For display, perhaps we should also map control characters to the
375  * Unicode glyphs showing the name of the control character in small
376  * caps, diagonally. (Unfortunately, those only exist for C0, not C1.)
377  *
378  * *DO NOT* add anything to this set that is not a character encoding!
379  */
380 #define ENC_CHARENCODING_MASK 0x0000FFFE /* mask out byte-order bits and other bits used with string encodings */
381 #define ENC_ASCII 0x00000000
382 #define ENC_ISO_646_IRV ENC_ASCII /* ISO 646 International Reference Version = ASCII */
383 #define ENC_UTF_8 0x00000002
384 #define ENC_UTF_16 0x00000004
385 #define ENC_UCS_2 0x00000006
386 #define ENC_UCS_4 0x00000008
387 #define ENC_ISO_8859_1 0x0000000A
388 #define ENC_ISO_8859_2 0x0000000C
389 #define ENC_ISO_8859_3 0x0000000E
390 #define ENC_ISO_8859_4 0x00000010
391 #define ENC_ISO_8859_5 0x00000012
392 #define ENC_ISO_8859_6 0x00000014
393 #define ENC_ISO_8859_7 0x00000016
394 #define ENC_ISO_8859_8 0x00000018
395 #define ENC_ISO_8859_9 0x0000001A
396 #define ENC_ISO_8859_10 0x0000001C
397 #define ENC_ISO_8859_11 0x0000001E
398 /* #define ENC_ISO_8859_12 0x00000020 ISO 8859-12 was abandoned */
399 #define ENC_ISO_8859_13 0x00000022
400 #define ENC_ISO_8859_14 0x00000024
401 #define ENC_ISO_8859_15 0x00000026
402 #define ENC_ISO_8859_16 0x00000028
403 #define ENC_WINDOWS_1250 0x0000002A
404 #define ENC_3GPP_TS_23_038_7BITS_PACKED 0x0000002C
405 #define ENC_3GPP_TS_23_038_7BITS ENC_3GPP_TS_23_038_7BITS_PACKED
406 #define ENC_EBCDIC 0x0000002E
407 #define ENC_MAC_ROMAN 0x00000030
408 #define ENC_CP437 0x00000032
409 #define ENC_ASCII_7BITS 0x00000034
410 #define ENC_T61 0x00000036
411 #define ENC_EBCDIC_CP037 0x00000038
412 #define ENC_WINDOWS_1252 0x0000003A
413 #define ENC_WINDOWS_1251 0x0000003C
414 #define ENC_CP855 0x0000003E
415 #define ENC_CP866 0x00000040
416 #define ENC_ISO_646_BASIC 0x00000042
417 #define ENC_BCD_DIGITS_0_9 0x00000044 /* Packed BCD, digits 0-9 */
418 #define ENC_KEYPAD_ABC_TBCD 0x00000046 /* Keypad-with-a/b/c "telephony BCD" = 0-9, *, #, a, b, c */
419 #define ENC_KEYPAD_BC_TBCD 0x00000048 /* Keypad-with-B/C "telephony BCD" = 0-9, B, C, *, # */
420 #define ENC_3GPP_TS_23_038_7BITS_UNPACKED 0x0000004C
421 #define ENC_ETSI_TS_102_221_ANNEX_A 0x0000004E /* ETSI TS 102 221 Annex A */
422 #define ENC_GB18030 0x00000050
423 #define ENC_EUC_KR 0x00000052
424 #define ENC_APN_STR 0x00000054 /* The encoding the APN/DNN field follows 3GPP TS 23.003 [2] clause 9.1.*/
425 #define ENC_DECT_STANDARD_8BITS 0x00000056 /* DECT standard character set as defined in ETSI EN 300 175-5 Annex D */
426 #define ENC_DECT_STANDARD_4BITS_TBCD 0x00000058 /* DECT standard 4bits character set as defined in ETSI EN 300 175-5 Annex D (BCD with 0xb = SPACE)*/
427 #define ENC_EBCDIC_CP500 0x00000060
428 /*
429  * TODO:
430  *
431  * packet-bacapp.c refers to two currently unsupported character sets (where
432  * we just use ASCII currently):
433  *
434  * "IBM MS DBCS" - At the very least could be any IBM/MS Double Byte
435  * Character Set for CJK (4 major ones), but also could just be any non
436  * Unicode and non ISO-8859-1 code page. This would be supported via the
437  * various code pages.
438  * JIS C 6226 / JIS X 0206 - Does this refer to ISO-2022-JP, SHIFT-JIS, or
439  * EUC-JP, which are all encoding schemes that support the JIS X 0206
440  * character set?
441  *
442  * As those are added, change code such as the code in packet-bacapp.c
443  * to use them.
444  *
445  * There's also some other code (e.g., packet-smpp.c) that just ignores
446  * strings if it determines that they are in an unsupported encoding, such
447  * as various encodings of Japanese mentioned above, for example.
448  *
449  */
450 
451 /*
452  * This is a modifier for FT_UINT_STRING and FT_UINT_BYTES values;
453  * it indicates that the length field should be interpreted as per
454  * sections 2.5.2.11 Octet String through 2.5.2.14 Long Character
455  * String of the ZigBee Cluster Library Specification, where if all
456  * bits are set in the length field, the string has an invalid value,
457  * and the number of octets in the value is 0.
458  */
459 #define ENC_ZIGBEE 0x40000000
460 
461 /*
462  * This is a modifier for ENC_UTF_16, ENC_UCS_2, and ENC_UCS_4
463  * indicating that if the first two (or four, for UCS-4) octets
464  * are a big-endian or little-endian BOM, use that to determine
465  * the serialization order and ignore the ENC_LITTLE_ENDIAN or
466  * ENC_BIG_ENDIAN flag. This can't collide with ENC_ZIGBEE because
467  * it could be used simultaneously.
468  */
469 #define ENC_BOM 0x20000000
470 
471 /*
472  * For cases where either native type or string encodings could both be
473  * valid arguments, we need something to distinguish which one is being
474  * passed as the argument, because ENC_BIG_ENDIAN and ENC_ASCII are both
475  * 0x00000000. So we use ENC_STR_NUM or ENC_STR_HEX bit-or'ed with
476  * ENC_ASCII and its ilk.
477  *
478  * XXX - ENC_STR_NUM is not yet supported by any code in Wireshark,
479  * and these are aonly used for byte arrays. Presumably they could
480  * also be used for integral values in the future.
481  */
482 /* this is for strings as numbers "12345" */
483 #define ENC_STR_NUM 0x01000000
484 /* this is for strings as hex "1a2b3c" */
485 #define ENC_STR_HEX 0x02000000
486 /* a convenience macro for either of the above */
487 #define ENC_STRING 0x03000000
488 /* Kept around for compatibility for Lua scripts; code should use ENC_CHARENCODING_MASK */
489 #define ENC_STR_MASK 0x0000FFFE
490 
491 /*
492  * For cases where the number is allowed to have a leading '+'/'-'
493  * this can't collide with ENC_SEP_* because they can be used simultaneously
494  *
495  * XXX - this is not used anywhere in Wireshark's code, dating back to
496  * at least Wireshark 2.6 and continuing to the current version.
497  * Perhaps the intent was to use it in the future, but 1) I'm not sure
498  * why it would be combined with ENC_SEP_, as byte arrays have no sign
499  * but integral values do, and 2) if we were to support string encodings
500  * for integral types, presumably whether it's signed (FT_INTn) or
501  * unsigned (FT_UINTn) would suffice to indicate whether the value
502  * can be signed or not.
503  */
504 #define ENC_NUM_PREF 0x00200000
505 
506 /*
507  * Encodings for byte arrays.
508  *
509  * For cases where the byte array is encoded as a string composed of
510  * pairs of hex digits, possibly with a separator character between
511  * the pairs. That's specified by the encoding having ENC_STR_HEX,
512  * plus one of these values, set.
513  *
514  * See hex_str_to_bytes_encoding() in epan/strutil.h for details.
515  */
516 #define ENC_SEP_NONE 0x00010000
517 #define ENC_SEP_COLON 0x00020000
518 #define ENC_SEP_DASH 0x00040000
519 #define ENC_SEP_DOT 0x00080000
520 #define ENC_SEP_SPACE 0x00100000
521 /* a convenience macro for the above */
522 #define ENC_SEP_MASK 0x001F0000
523 
524 /* Encodings for BCD strings
525  * Depending if the BCD string has even or odd number of digits
526  * we may need to strip of the last digit/High nibble
527  */
528 #define ENC_BCD_ODD_NUM_DIG 0x00010000
529 #define ENC_BCD_SKIP_FIRST 0x00020000
530  /*
531  * Encodings for time values.
532  *
533  * Historically FT_TIMEs were only timespecs; the only question was whether
534  * they were stored in big- or little-endian format.
535  *
536  * For backwards compatibility, we interpret an encoding of 1 as meaning
537  * "little-endian timespec", so that passing TRUE is interpreted as that.
538  *
539  * We now support:
540  *
541  * ENC_TIME_SECS_NSECS - 8, 12, or 16 bytes. For 8 bytes, the first 4
542  * bytes are seconds and the next 4 bytes are nanoseconds; for 12 bytes,
543  * the first 8 bytes are seconds and the next 4 bytes are nanoseconds;
544  * for 16 bytes, the first 8 bytes are seconds and the next 8 bytes are
545  * nanoseconds. If the time is absolute, the seconds are seconds since
546  * the UN*X epoch (1970-01-01 00:00:00 UTC). (I.e., a UN*X struct
547  * timespec with a 4-byte or 8-byte time_t or a structure with an
548  * 8-byte time_t and an 8-byte nanoseconds field.)
549  *
550  * ENC_TIME_NTP - 8 bytes; the first 4 bytes are seconds since the NTP
551  * epoch (1900-01-01 00:00:00 GMT) and the next 4 bytes are 1/2^32's of
552  * a second since that second. (I.e., a 64-bit count of 1/2^32's of a
553  * second since the NTP epoch, with the upper 32 bits first and the
554  * lower 32 bits second, even when little-endian.) A value of 0 is a
555  * special case representing unknown or unsynchronized time. Per the
556  * suggestion in RFC 4330, if bit 0 is not set then the time is assumed
557  * to be in NTP Era 1, beginning on 2036-02-07 06:28:16 UTC. (I.e., the
558  * time displayed will be between 1968-01-20 03:14:08 UTC and
559  * 2104-02-26 09:42:24 UTC.) The 16 byte NTP date format and the 4 byte
560  * NTP short relative time format are not supported.
561  * Encodings that store only the seconds since the NTP epoch without
562  * fractional seconds should use ENC_TIME_SECS_NTP, described below.
563  *
564  * ENC_TIME_TOD - 8 bytes, as a count of microseconds since the System/3x0
565  * and z/Architecture epoch (1900-01-01 00:00:00 GMT).
566  *
567  * ENC_TIME_RTPS - 8 bytes; the first 4 bytes are seconds since the UN*X
568  * epoch and the next 4 bytes are 1/2^32's of a second since that
569  * second. (I.e., it's the offspring of a mating between UN*X time and
570  * NTP time). It's used by the Object Management Group's Real-Time
571  * Publish-Subscribe Wire Protocol for the Data Distribution Service.
572  *
573  * ENC_TIME_SECS_USECS - 8 bytes; the first 4 bytes are seconds and the
574  * next 4 bytes are microseconds. If the time is absolute, the seconds
575  * are seconds since the UN*X epoch. (I.e., a UN*X struct timeval with
576  * a 4-byte time_t.)
577  *
578  * ENC_TIME_SECS - 4 to 8 bytes, representing a value in seconds.
579  * If the time is absolute, it's seconds since the UN*X epoch.
580  *
581  * ENC_TIME_MSECS - 6 to 8 bytes, representing a value in milliseconds.
582  * If the time is absolute, it's milliseconds since the UN*X epoch.
583  *
584  * ENC_TIME_USECS - 8 bytes, representing a value in microseconds.
585  * If the time is absolute, it's microseconds since the UN*X epoch.
586  *
587  * ENC_TIME_NSECS - 8 bytes, representing a value in nanoseconds.
588  * If the time is absolute, it's nanoseconds since the UN*X epoch.
589  *
590  * ENC_TIME_SECS_NTP - 4 bytes, representing a count of seconds since
591  * the NTP epoch. As with ENC_TIME_NTP, times are assumed to be in
592  * the upper half of NTP Era 0 or the lower half of NTP Era 1.
593  *
594  * ENC_TIME_RFC_3971 - 8 bytes, representing a count of 1/64ths of a
595  * second since the UN*X epoch; see section 5.3.1 "Timestamp Option"
596  * in RFC 3971.
597  *
598  * ENC_TIME_MSEC_NTP - 6-8 bytes, representing a count of milliseconds since
599  * the NTP epoch. Similar to ENC_TIME_NTP, times before the midpoint of
600  * NTP Era 0 (1968-01-20) are assumed to represent the corresponding
601  * time in NTP Era 1 instead.
602  *
603  * ENC_TIME_MIP6 - 8 bytes; the first 48 bits are seconds since the UN*X epoch
604  * and the remaining 16 bits indicate the number of 1/65536's of a second
605  * since that second.
606  *
607  * ENC_TIME_CLASSIC_MAC_OS_SECS - 4-8 bytes, representing a count of seconds
608  * since January 1, 1904, 00:00:00 UTC.
609  */
610 #define ENC_TIME_SECS_NSECS 0x00000000
611 #define ENC_TIME_TIMESPEC 0x00000000 /* for backwards source compatibility */
612 #define ENC_TIME_NTP 0x00000002
613 #define ENC_TIME_TOD 0x00000004
614 #define ENC_TIME_RTPS 0x00000008
615 #define ENC_TIME_NTP_BASE_ZERO 0x00000008 /* for backwards source compatibility */
616 #define ENC_TIME_SECS_USECS 0x00000010
617 #define ENC_TIME_TIMEVAL 0x00000010 /* for backwards source compatibility */
618 #define ENC_TIME_SECS 0x00000012
619 #define ENC_TIME_MSECS 0x00000014
620 #define ENC_TIME_SECS_NTP 0x00000018
621 #define ENC_TIME_RFC_3971 0x00000020
622 #define ENC_TIME_MSEC_NTP 0x00000022
623 #define ENC_TIME_MIP6 0x00000024
624 #define ENC_TIME_CLASSIC_MAC_OS_SECS 0x00000026
625 #define ENC_TIME_NSECS 0x00000028
626 #define ENC_TIME_USECS 0x00000030
627 
628 /*
629  * For cases where a string encoding contains a timestamp, use one
630  * of these (but only one). These values can collide with the ENC_SEP_
631  * values used when a string encoding contains a byte array, because
632  * you can't do both at the same time. They must not, however,
633  * overlap with the character encoding values.
634  */
635 #define ENC_ISO_8601_DATE 0x00010000
636 #define ENC_ISO_8601_TIME 0x00020000
637 #define ENC_ISO_8601_DATE_TIME 0x00030000
638 #define ENC_IMF_DATE_TIME 0x00040000 /* Internet Message Format - RFCs 822, 1123, 2822, 5322 */
639 #define ENC_RFC_822 0x00040000 /* backwards compatibility */
640 #define ENC_RFC_1123 0x00040000 /* backwards source compatibility - not binary */
641 #define ENC_ISO_8601_DATE_TIME_BASIC 0x00100000
642 /* a convenience macro for the above - for internal use only */
643 #define ENC_STR_TIME_MASK 0x001F0000
644 
645 /*
646  * Encodings for variable-length integral types.
647  */
648 
649 /* Use varint format as described in Protobuf protocol
650  * https://developers.google.cn/protocol-buffers/docs/encoding
651  */
652 #define ENC_VARINT_PROTOBUF 0x00000002
653 /*
654  * Decodes a variable-length integer used in QUIC protocol
655  * See https://tools.ietf.org/html/draft-ietf-quic-transport-08#section-8.1
656  */
657 #define ENC_VARINT_QUIC 0x00000004
658  /*
659  * Use "zig-zag" varint format as described in Protobuf protocol
660  * See https://developers.google.com/protocol-buffers/docs/encoding?csw=1#types
661  */
662 #define ENC_VARINT_ZIGZAG 0x00000008
663 /*
664  * Decodes a variable-length integer used in DTN protocols
665  * See https://www.rfc-editor.org/rfc/rfc6256.html
666  */
667 #define ENC_VARINT_SDNV 0x00000010
668 
669 #define ENC_VARINT_MASK (ENC_VARINT_PROTOBUF|ENC_VARINT_QUIC|ENC_VARINT_ZIGZAG|ENC_VARINT_SDNV)
670 
671 /* Values for header_field_info.display */
672 
673 /* For integral types, the display format is a BASE_* field_display_e value
674  * possibly ORed with BASE_*_STRING */
675 
677 #define FIELD_DISPLAY_E_MASK 0xFF
678 
679 typedef enum {
680  BASE_NONE = 0,
682 /* Integral and float types */
691 /* Byte separators */
697 /* Address types */
700 /* Port types */
706 /* OUI types */
709 /* Time types */
716 /* String types */
719 
720 #define FIELD_DISPLAY(d) ((d) & FIELD_DISPLAY_E_MASK)
721 
722 #define FIELD_DISPLAY_IS_ABSOLUTE_TIME(d) \
723  (FIELD_DISPLAY(d) >= ABSOLUTE_TIME_LOCAL && FIELD_DISPLAY(d) <= ABSOLUTE_TIME_UNIX)
724 
725 /* Following constants have to be ORed with a field_display_e when dissector
726  * want to use specials value-string MACROs for a header_field_info */
727 #define BASE_RANGE_STRING 0x00000100
728 #define BASE_EXT_STRING 0x00000200
729 #define BASE_VAL64_STRING 0x00000400
730 
731 #define BASE_ALLOW_ZERO 0x00000800
733 #define BASE_UNIT_STRING 0x00001000
735 #define BASE_NO_DISPLAY_VALUE 0x00002000
738 #define BASE_PROTOCOL_INFO 0x00004000
740 #define BASE_SPECIAL_VALS 0x00008000
742 #define BASE_SHOW_ASCII_PRINTABLE 0x00010000
744 #define BASE_SHOW_UTF_8_PRINTABLE 0x00020000
747 #define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC)
748 
750 #define IS_BASE_PORT(b) (((b)==BASE_PT_UDP||(b)==BASE_PT_TCP||(b)==BASE_PT_DCCP||(b)==BASE_PT_SCTP))
751 
752 typedef enum {
757 
760 
763  /* ---------- set by dissector --------- */
764  const char *name;
765  const char *abbrev;
766  enum ftenum type;
767  int display;
768  const void *strings;
772  guint64 bitmask;
773  const char *blurb;
775  /* ------- set by proto routines (prefilled by HFILL macro, see below) ------ */
776  int id;
777  int parent;
781 };
782 
788 #define HFILL -1, 0, HF_REF_TYPE_NONE, -1, NULL
789 
790 #define HFILL_INIT(hf) \
791  (hf).hfinfo.id = -1; \
792  (hf).hfinfo.parent = 0; \
793  (hf).hfinfo.ref_type = HF_REF_TYPE_NONE; \
794  (hf).hfinfo.same_name_prev_id = -1; \
795  (hf).hfinfo.same_name_next = NULL;
796 
798 typedef struct hf_register_info {
799  int *p_id;
802 
804 typedef struct _item_label_t {
805  char representation[ITEM_LABEL_LENGTH];
807 
809 typedef struct field_info {
811  gint start;
812  gint length;
815  gint tree_type;
816  guint32 flags;
819  fvalue_t *value;
823 
824 
825 /*
826  * This structure describes one segment of a split-bits item
827  * crumb_bit_offset is the bit offset in the input tvb of the first (most significant) bit of this crumb
828  * crumb_bit_length is the number of contiguous bits of this crumb.
829  * The first element of an array of bits_specs describes the most significant crumb of the output value.
830  * The second element of an array of bits_specs describes the next-most significant crumb of the output value, etc.
831  * The array is terminated by a sentinel entry with crumb_bit_length of 0.
832 */
833 typedef struct
834 {
835  guint crumb_bit_offset;
836  guint8 crumb_bit_length;
837 } crumb_spec_t;
838 
839 /*
840  * Flag fields. Do not assign values greater than 0x000FFFFF unless you
841  * shuffle the expert information upward; see below.
842  */
843 
849 #define FI_HIDDEN 0x00000001
852 #define FI_GENERATED 0x00000002
854 #define FI_URL 0x00000004
855 
857 #define FI_LITTLE_ENDIAN 0x00000008
859 #define FI_BIG_ENDIAN 0x00000010
861 #define FI_BITS_OFFSET(n) (((n) & 7) << 5)
863 /* if 0, it means that field takes fi->length * 8 */
864 #define FI_BITS_SIZE(n) (((n) & 63) << 8)
866 #define FI_VARINT 0x00004000
867 
869 #define FI_GET_FLAG(fi, flag) ((fi) ? ((fi)->flags & (flag)) : 0)
871 #define FI_SET_FLAG(fi, flag) \
872  do { \
873  if (fi) \
874  (fi)->flags = (fi)->flags | (flag); \
875  } while(0)
877 #define FI_RESET_FLAG(fi, flag) \
878  do { \
879  if (fi) \
880  (fi)->flags = (fi)->flags & ~(flag); \
881  } while(0)
882 
883 #define FI_GET_BITS_OFFSET(fi) (FI_GET_FLAG(fi, FI_BITS_OFFSET(7)) >> 5)
884 #define FI_GET_BITS_SIZE(fi) (FI_GET_FLAG(fi, FI_BITS_SIZE(63)) >> 8)
885 
888 typedef struct {
889  GHashTable *interesting_hfids;
890  gboolean visible;
891  gboolean fake_protocols;
892  guint count;
893  struct _packet_info *pinfo;
894 } tree_data_t;
895 
897 typedef struct _proto_node {
898  struct _proto_node *first_child;
899  struct _proto_node *last_child;
900  struct _proto_node *next;
901  struct _proto_node *parent;
902  field_info *finfo;
903  tree_data_t *tree_data;
905 
910 
911 /*
912  * Expert information.
913  * This is in the flags field; we allocate this from the top down,
914  * so as not to collide with FI_ flags, which are allocated from
915  * the bottom up.
916  */
917 
918 /* expert severities */
919 #define PI_SEVERITY_MASK 0x00F00000
921 #define PI_COMMENT 0x00100000
923 #define PI_CHAT 0x00200000
925 #define PI_NOTE 0x00400000
927 #define PI_WARN 0x00600000
929 #define PI_ERROR 0x00800000
930 
931 /* expert "event groups" */
932 #define PI_GROUP_MASK 0xFF000000
934 #define PI_CHECKSUM 0x01000000
936 #define PI_SEQUENCE 0x02000000
938 #define PI_RESPONSE_CODE 0x03000000
940 #define PI_REQUEST_CODE 0x04000000
942 #define PI_UNDECODED 0x05000000
944 #define PI_REASSEMBLE 0x06000000
946 #define PI_MALFORMED 0x07000000
948 #define PI_DEBUG 0x08000000
950 #define PI_PROTOCOL 0x09000000
952 #define PI_SECURITY 0x0a000000
954 #define PI_COMMENTS_GROUP 0x0b000000
956 #define PI_DECRYPTION 0x0c000000
958 #define PI_ASSUMPTION 0x0d000000
960 #define PI_DEPRECATED 0x0e000000
961 
962 /*
963  * add more, see
964  * https://gitlab.com/wireshark/wireshark/-/wikis/Development/ExpertInfo
965  */
966 
968 #define PNODE_FINFO(proto_node) ((proto_node)->finfo)
969 
971 #define PITEM_FINFO(proto_item) PNODE_FINFO(proto_item)
972 
974 #define PTREE_FINFO(proto_tree) PNODE_FINFO(proto_tree)
975 
977 #define PTREE_DATA(proto_tree) ((proto_tree)->tree_data)
978 
980 #define PNODE_POOL(proto_node) ((proto_node)->tree_data->pinfo->pool)
981 
987 static inline gboolean proto_item_is_hidden(proto_item *ti) {
988  if (ti) {
989  return FI_GET_FLAG(PITEM_FINFO(ti), FI_HIDDEN);
990  }
991  return FALSE;
992 }
993 #define PROTO_ITEM_IS_HIDDEN(ti) proto_item_is_hidden((ti))
994 
999 static inline void proto_item_set_hidden(proto_item *ti) {
1000  if (ti) {
1002  }
1003 }
1004 #define PROTO_ITEM_SET_HIDDEN(ti) proto_item_set_hidden((ti))
1005 
1009 static inline void proto_item_set_visible(proto_item *ti) {
1010  if (ti) {
1012  }
1013 }
1014 #define PROTO_ITEM_SET_VISIBLE(ti) proto_item_set_visible((ti))
1015 
1020 static inline gboolean proto_item_is_generated(proto_item *ti) {
1021  if (ti) {
1022  return FI_GET_FLAG(PITEM_FINFO(ti), FI_GENERATED);
1023  }
1024  return FALSE;
1025 }
1026 #define PROTO_ITEM_IS_GENERATED(ti) proto_item_is_generated((ti))
1027 
1031 static inline void proto_item_set_generated(proto_item *ti) {
1032  if (ti) {
1034  }
1035 }
1036 #define PROTO_ITEM_SET_GENERATED(ti) proto_item_set_generated((ti))
1037 
1043 static inline gboolean proto_item_is_url(proto_item *ti) {
1044  if (ti) {
1045  return FI_GET_FLAG(PITEM_FINFO(ti), FI_URL);
1046  }
1047  return FALSE;
1048 }
1049 #define PROTO_ITEM_IS_URL(ti) proto_item_is_url((ti))
1050 
1054 static inline void proto_item_set_url(proto_item *ti) {
1055  if (ti) {
1057  }
1058 }
1059 #define PROTO_ITEM_SET_URL(ti) proto_item_set_url((ti))
1060 
1061 typedef void (*proto_tree_foreach_func)(proto_node *, gpointer);
1062 typedef gboolean (*proto_tree_traverse_func)(proto_node *, gpointer);
1063 
1064 WS_DLL_PUBLIC void proto_tree_children_foreach(proto_tree *tree,
1065  proto_tree_foreach_func func, gpointer data);
1066 
1067 typedef struct {
1068  void (*register_protoinfo)(void); /* routine to call to register protocol information */
1069  void (*register_handoff)(void); /* routine to call to register dissector handoff */
1070 } proto_plugin;
1071 
1073 WS_DLL_PUBLIC void proto_register_plugin(const proto_plugin *plugin);
1074 
1076 void proto_init(GSList *register_all_plugin_protocols_list,
1077  GSList *register_all_plugin_handoffs_list, register_cb cb, void *client_data);
1078 
1080 extern void proto_cleanup(void);
1081 
1095 WS_DLL_PUBLIC gboolean proto_field_is_referenced(proto_tree *tree, int proto_id);
1096 
1101 WS_DLL_PUBLIC proto_tree* proto_item_add_subtree(proto_item *pi, const gint idx) G_GNUC_WARN_UNUSED_RESULT;
1102 
1106 WS_DLL_PUBLIC proto_tree* proto_item_get_subtree(proto_item *pi);
1107 
1111 WS_DLL_PUBLIC proto_item* proto_item_get_parent(const proto_item *pi);
1112 
1117 WS_DLL_PUBLIC proto_item* proto_item_get_parent_nth(proto_item *pi, int gen);
1118 
1123 WS_DLL_PUBLIC void proto_item_set_text(proto_item *pi, const char *format, ...)
1124  G_GNUC_PRINTF(2,3);
1125 
1130 WS_DLL_PUBLIC void proto_item_append_text(proto_item *pi, const char *format, ...)
1131  G_GNUC_PRINTF(2,3);
1132 
1137 WS_DLL_PUBLIC void proto_item_prepend_text(proto_item *pi, const char *format, ...)
1138  G_GNUC_PRINTF(2,3);
1139 
1143 WS_DLL_PUBLIC void proto_item_set_len(proto_item *pi, const gint length);
1144 
1163 WS_DLL_PUBLIC void proto_item_set_end(proto_item *pi, tvbuff_t *tvb, gint end);
1164 
1169 WS_DLL_PUBLIC int proto_item_get_len(const proto_item *pi);
1170 
1176 WS_DLL_PUBLIC void proto_item_set_bits_offset_len(proto_item *ti, int bits_offset, int bits_len);
1177 
1184 WS_DLL_PUBLIC char *proto_item_get_display_repr(wmem_allocator_t *scope, proto_item *pi);
1185 
1188 extern proto_tree* proto_tree_create_root(struct _packet_info *pinfo);
1189 
1190 void proto_tree_reset(proto_tree *tree);
1191 
1194 WS_DLL_PUBLIC void proto_tree_free(proto_tree *tree);
1195 
1203 WS_DLL_PUBLIC gboolean
1204 proto_tree_set_visible(proto_tree *tree, gboolean visible);
1205 
1209 extern void
1210 proto_tree_set_fake_protocols(proto_tree *tree, gboolean fake_protocols);
1211 
1216 extern void
1218 
1222 WS_DLL_PUBLIC proto_item* proto_tree_get_parent(proto_tree *tree);
1223 
1227 WS_DLL_PUBLIC proto_tree *proto_tree_get_parent_tree(proto_tree *tree);
1228 
1232 WS_DLL_PUBLIC proto_tree* proto_tree_get_root(proto_tree *tree);
1233 
1238 WS_DLL_PUBLIC void proto_tree_move_item(proto_tree *tree, proto_item *fixed_item, proto_item *item_to_move);
1239 
1240 
1246 WS_DLL_PUBLIC void proto_tree_set_appendix(proto_tree *tree, tvbuff_t *tvb, gint start, const gint length);
1247 
1248 
1258 WS_DLL_PUBLIC proto_item *
1260  const gint start, gint length, const guint encoding);
1261 
1262 WS_DLL_PUBLIC proto_item *
1263 proto_tree_add_item(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1264  const gint start, gint length, const guint encoding);
1265 
1278 WS_DLL_PUBLIC proto_item *
1280  const gint start, gint length, const guint encoding, gint *lenretval);
1281 
1282 WS_DLL_PUBLIC proto_item *
1283 proto_tree_add_item_ret_length(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1284  const gint start, gint length, const guint encoding, gint *lenretval);
1285 
1317 WS_DLL_PUBLIC proto_item *
1318 proto_tree_add_item_ret_int(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1319  const gint start, gint length, const guint encoding, gint32 *retval);
1320 
1321 WS_DLL_PUBLIC proto_item *
1322 proto_tree_add_item_ret_int64(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1323  const gint start, gint length, const guint encoding, gint64 *retval);
1324 
1325 WS_DLL_PUBLIC proto_item *
1326 proto_tree_add_item_ret_uint(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1327  const gint start, gint length, const guint encoding, guint32 *retval);
1328 
1329 WS_DLL_PUBLIC proto_item *
1330 proto_tree_add_item_ret_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1331  const gint start, gint length, const guint encoding, guint64 *retval);
1332 
1333 WS_DLL_PUBLIC proto_item *
1334 proto_tree_add_item_ret_varint(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1335  const gint start, gint length, const guint encoding, guint64 *retval, gint *lenretval);
1336 
1337 WS_DLL_PUBLIC proto_item *
1338 proto_tree_add_item_ret_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1339  const gint start, gint length, const guint encoding, gboolean *retval);
1340 
1341 WS_DLL_PUBLIC proto_item *
1342 proto_tree_add_item_ret_ipv4(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1343  const gint start, gint length, const guint encoding, ws_in4_addr *retval);
1344 
1359 WS_DLL_PUBLIC proto_item *
1360 proto_tree_add_item_ret_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1361  const gint start, gint length, const guint encoding, ws_in6_addr *retval);
1362 
1377 WS_DLL_PUBLIC proto_item *
1378 proto_tree_add_item_ret_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1379  const gint start, gint length, const guint encoding, guint8 *retval);
1380 
1394 WS_DLL_PUBLIC proto_item *
1395 proto_tree_add_item_ret_float(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1396  const gint start, gint length,
1397  const guint encoding, gfloat *retval);
1398 
1412 WS_DLL_PUBLIC proto_item *
1413 proto_tree_add_item_ret_double(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1414  const gint start, gint length,
1415  const guint encoding, gdouble *retval);
1416 
1446 WS_DLL_PUBLIC proto_item *
1448  tvbuff_t *tvb, const gint start, gint length, const guint encoding,
1449  wmem_allocator_t *scope, const guint8 **retval, gint *lenretval);
1450 
1478 WS_DLL_PUBLIC proto_item *
1479 proto_tree_add_item_ret_string(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1480  const gint start, gint length, const guint encoding,
1481  wmem_allocator_t *scope, const guint8 **retval);
1482 
1503 WS_DLL_PUBLIC proto_item *
1505  tvbuff_t *tvb,
1506  const gint start, gint length, const guint encoding,
1507  wmem_allocator_t *scope, char **retval, gint *lenretval);
1508 
1526 WS_DLL_PUBLIC proto_item *
1528  tvbuff_t *tvb,
1529  const gint start, gint length, const guint encoding,
1530  wmem_allocator_t *scope, char **retval);
1531 
1547 WS_DLL_PUBLIC proto_item *
1549  tvbuff_t *tvb,
1550  const gint start, gint length, const guint encoding,
1551  wmem_allocator_t *scope, char **retval);
1552 
1561 proto_item *
1562 proto_tree_add_text_internal(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, const char *format,
1563  ...) G_GNUC_PRINTF(5,6);
1564 
1573 proto_item *
1575  gint length, const char *format, va_list ap) G_GNUC_PRINTF(5, 0);
1576 
1586 WS_DLL_PUBLIC proto_tree *
1587 proto_tree_add_subtree(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, gint idx,
1588  proto_item **tree_item, const char *text);
1589 
1600 WS_DLL_PUBLIC proto_tree *
1601 proto_tree_add_subtree_format(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, gint idx,
1602  proto_item **tree_item, const char *format, ...) G_GNUC_PRINTF(7,8);
1603 
1605 proto_item *
1606 proto_tree_add_format_text(proto_tree *tree, tvbuff_t *tvb, gint start, gint length);
1607 
1609 proto_item *
1610 proto_tree_add_format_wsp_text(proto_tree *tree, tvbuff_t *tvb, gint start, gint length);
1611 
1621 WS_DLL_PUBLIC proto_item *
1622 proto_tree_add_none_format(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const gint start,
1623  gint length, const char *format, ...) G_GNUC_PRINTF(6,7);
1624 
1634 WS_DLL_PUBLIC proto_item *
1635 proto_tree_add_protocol_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1636  gint length, const char *format, ...) G_GNUC_PRINTF(6,7);
1637 
1646 WS_DLL_PUBLIC proto_item *
1647 proto_tree_add_bytes(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1648  gint length, const guint8* start_ptr);
1649 
1660 WS_DLL_PUBLIC proto_item *
1661 proto_tree_add_bytes_with_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1662  gint length, const guint8 *start_ptr, gint ptr_length);
1663 
1697 WS_DLL_PUBLIC proto_item *
1698 proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1699  const gint start, gint length, const guint encoding,
1700  GByteArray *retval, gint *endoff, gint *err);
1701 
1714 WS_DLL_PUBLIC proto_item *
1716  gint start, gint length, const guint8* start_ptr, const char *format,
1717  ...) G_GNUC_PRINTF(7,8);
1718 
1730 WS_DLL_PUBLIC proto_item *
1731 proto_tree_add_bytes_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1732  gint length, const guint8* start_ptr, const char *format, ...) G_GNUC_PRINTF(7,8);
1733 
1742 WS_DLL_PUBLIC proto_item *
1743 proto_tree_add_time(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1744  gint length, const nstime_t* value_ptr);
1745 
1776 WS_DLL_PUBLIC proto_item *
1777 proto_tree_add_time_item(proto_tree *tree, int hfindex, tvbuff_t *tvb,
1778  const gint start, gint length, const guint encoding,
1779  nstime_t *retval, gint *endoff, gint *err);
1780 
1781 
1794 WS_DLL_PUBLIC proto_item *
1796  gint start, gint length, nstime_t* value_ptr, const char *format, ...)
1797  G_GNUC_PRINTF(7,8);
1798 
1811 WS_DLL_PUBLIC proto_item *
1812 proto_tree_add_time_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1813  gint length, nstime_t* value_ptr, const char *format, ...) G_GNUC_PRINTF(7,8);
1814 
1823 WS_DLL_PUBLIC proto_item *
1824 proto_tree_add_ipxnet(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1825  gint length, guint32 value);
1826 
1839 WS_DLL_PUBLIC proto_item *
1841  gint start, gint length, guint32 value, const char *format, ...)
1842  G_GNUC_PRINTF(7,8);
1843 
1855 WS_DLL_PUBLIC proto_item *
1856 proto_tree_add_ipxnet_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1857  gint length, guint32 value, const char *format, ...) G_GNUC_PRINTF(7,8);
1858 
1867 WS_DLL_PUBLIC proto_item *
1868 proto_tree_add_ipv4(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1869  gint length, ws_in4_addr value);
1870 
1883 WS_DLL_PUBLIC proto_item *
1885  gint start, gint length, ws_in4_addr value, const char *format, ...)
1886  G_GNUC_PRINTF(7,8);
1887 
1899 WS_DLL_PUBLIC proto_item *
1900 proto_tree_add_ipv4_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1901  gint length, ws_in4_addr value, const char *format, ...) G_GNUC_PRINTF(7,8);
1902 
1911 WS_DLL_PUBLIC proto_item *
1912 proto_tree_add_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1913  gint length, const ws_in6_addr *value_ptr);
1914 
1927 WS_DLL_PUBLIC proto_item *
1929  gint start, gint length, const ws_in6_addr *value_ptr, const char *format,
1930  ...) G_GNUC_PRINTF(7,8);
1931 
1943 WS_DLL_PUBLIC proto_item *
1944 proto_tree_add_ipv6_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1945  gint length, const ws_in6_addr *value_ptr, const char *format, ...) G_GNUC_PRINTF(7,8);
1946 
1955 WS_DLL_PUBLIC proto_item *
1956 proto_tree_add_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1957  gint length, const guint8* value);
1958 
1971 WS_DLL_PUBLIC proto_item *
1973  gint start, gint length, const guint8* value, const char *format, ...)
1974  G_GNUC_PRINTF(7,8);
1975 
1987 WS_DLL_PUBLIC proto_item *
1988 proto_tree_add_ether_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
1989  gint length, const guint8* value, const char *format, ...) G_GNUC_PRINTF(7,8);
1990 
1999 WS_DLL_PUBLIC proto_item *
2000 proto_tree_add_guid(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2001  gint length, const e_guid_t *value_ptr);
2002 
2015 WS_DLL_PUBLIC proto_item *
2017  gint start, gint length, const e_guid_t *value_ptr, const char *format,
2018  ...) G_GNUC_PRINTF(7,8);
2019 
2031 WS_DLL_PUBLIC proto_item *
2032 proto_tree_add_guid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2033  gint length, const e_guid_t *value_ptr, const char *format, ...) G_GNUC_PRINTF(7,8);
2034 
2043 WS_DLL_PUBLIC proto_item *
2044 proto_tree_add_oid(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2045  gint length, const guint8* value_ptr);
2046 
2059 WS_DLL_PUBLIC proto_item *
2061  gint start, gint length, const guint8* value_ptr, const char *format,
2062  ...) G_GNUC_PRINTF(7,8);
2063 
2075 WS_DLL_PUBLIC proto_item *
2076 proto_tree_add_oid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2077  gint length, const guint8* value_ptr, const char *format, ...) G_GNUC_PRINTF(7,8);
2078 
2098 WS_DLL_PUBLIC proto_item *
2099 proto_tree_add_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2100  gint length, const char* value);
2101 
2114 WS_DLL_PUBLIC proto_item *
2116  gint start, gint length, const char* value, const char *format, ...)
2117  G_GNUC_PRINTF(7,8);
2118 
2131 WS_DLL_PUBLIC proto_item *
2132 proto_tree_add_string_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2133  gint length, const char* value, const char *format, ...) G_GNUC_PRINTF(7,8);
2134 
2143 WS_DLL_PUBLIC proto_item *
2144 proto_tree_add_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2145  gint length, guint32 value);
2146 
2159 WS_DLL_PUBLIC proto_item *
2161  tvbuff_t *tvb, gint start, gint length, guint32 value,
2162  const char *format, ...) G_GNUC_PRINTF(7,8);
2163 
2175 WS_DLL_PUBLIC proto_item *
2176 proto_tree_add_boolean_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2177  gint length, guint32 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2178 
2187 WS_DLL_PUBLIC proto_item *
2188 proto_tree_add_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2189  gint length, float value);
2190 
2203 WS_DLL_PUBLIC proto_item *
2205  gint start, gint length, float value, const char *format, ...)
2206  G_GNUC_PRINTF(7,8);
2207 
2219 WS_DLL_PUBLIC proto_item *
2220 proto_tree_add_float_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2221  gint length, float value, const char *format, ...) G_GNUC_PRINTF(7,8);
2222 
2231 WS_DLL_PUBLIC proto_item *
2232 proto_tree_add_double(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2233  gint length, double value);
2234 
2247 WS_DLL_PUBLIC proto_item *
2249  gint start, gint length, double value, const char *format, ...)
2250  G_GNUC_PRINTF(7,8);
2251 
2263 WS_DLL_PUBLIC proto_item *
2264 proto_tree_add_double_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2265  gint length, double value, const char *format, ...) G_GNUC_PRINTF(7,8);
2266 
2275 WS_DLL_PUBLIC proto_item *
2276 proto_tree_add_uint(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2277  gint length, guint32 value);
2278 
2291 WS_DLL_PUBLIC proto_item *
2293  gint start, gint length, guint32 value, const char *format, ...)
2294  G_GNUC_PRINTF(7,8);
2295 
2308 WS_DLL_PUBLIC proto_item *
2309 proto_tree_add_uint_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2310  gint length, guint32 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2311 
2320 WS_DLL_PUBLIC proto_item *
2321 proto_tree_add_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2322  gint length, guint64 value);
2323 
2336 WS_DLL_PUBLIC proto_item *
2338  gint start, gint length, guint64 value, const char *format, ...)
2339  G_GNUC_PRINTF(7,8);
2340 
2352 WS_DLL_PUBLIC proto_item *
2353 proto_tree_add_uint64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2354  gint length, guint64 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2355 
2364 WS_DLL_PUBLIC proto_item *
2365 proto_tree_add_int(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2366  gint length, gint32 value);
2367 
2380 WS_DLL_PUBLIC proto_item *
2382  gint start, gint length, gint32 value, const char *format, ...)
2383  G_GNUC_PRINTF(7,8);
2384 
2397 WS_DLL_PUBLIC proto_item *
2398 proto_tree_add_int_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2399  gint length, gint32 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2400 
2409 WS_DLL_PUBLIC proto_item *
2410 proto_tree_add_int64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2411  gint length, gint64 value);
2412 
2425 WS_DLL_PUBLIC proto_item *
2427  gint start, gint length, gint64 value, const char *format, ...)
2428  G_GNUC_PRINTF(7,8);
2429 
2441 WS_DLL_PUBLIC proto_item *
2442 proto_tree_add_int64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2443  gint length, gint64 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2444 
2453 WS_DLL_PUBLIC proto_item *
2454 proto_tree_add_eui64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2455  gint length, const guint64 value);
2456 
2469 WS_DLL_PUBLIC proto_item *
2471  gint start, gint length, const guint64 value, const char *format, ...)
2472  G_GNUC_PRINTF(7,8);
2473 
2485 WS_DLL_PUBLIC proto_item *
2486 proto_tree_add_eui64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
2487  gint length, const guint64 value, const char *format, ...) G_GNUC_PRINTF(7,8);
2488 
2490 typedef struct _mac_hf_list_t {
2491  int *hf_addr; // FT_ETHER, BASE_NONE
2492  int *hf_addr_resolved; // FT_STRING, BASE_NONE
2493  int *hf_oui; // FT_UINT24, BASE_OUI
2494  int *hf_oui_resolved; // FT_STRING, BASE_NONE
2495  int *hf_lg; // FT_BOOLEAN, 24 bits, mask 0x020000
2496  int *hf_ig; // FT_BOOLEAN, 24 bits, mask 0x010000
2498 
2508 WS_DLL_PUBLIC proto_item *
2509 proto_tree_add_mac48_detail(const mac_hf_list_t *list_specific,
2510  const mac_hf_list_t *list_generic,
2511  gint idx, tvbuff_t *tvb, proto_tree *tree, gint offset);
2512 
2519 WS_DLL_PUBLIC proto_item *
2520 proto_tree_add_debug_text(proto_tree *tree, const char *format,
2521  ...) G_GNUC_PRINTF(2,3);
2522 
2527 WS_DLL_PUBLIC void
2528 proto_item_fill_label(field_info *finfo, gchar *label_str);
2529 
2537 WS_DLL_PUBLIC int
2538 proto_item_fill_display_label(field_info *fi, gchar *display_label_str, const int label_str_size);
2539 
2545 WS_DLL_PUBLIC int
2546 proto_register_protocol(const char *name, const char *short_name, const char *filter_name);
2547 
2562 WS_DLL_PUBLIC int
2563 proto_register_protocol_in_name_only(const char *name, const char *short_name, const char *filter_name,
2564  int parent_proto, enum ftenum field_type);
2565 
2571 gboolean
2572 proto_deregister_protocol(const char *short_name);
2573 
2578 WS_DLL_PUBLIC void
2579 proto_register_alias(const int proto_id, const char *alias_name);
2580 
2585 typedef void (*prefix_initializer_t)(const char* match);
2586 
2594 WS_DLL_PUBLIC void
2595 proto_register_prefix(const char *prefix, prefix_initializer_t initializer);
2596 
2598 WS_DLL_PUBLIC void proto_initialize_all_prefixes(void);
2599 
2604 WS_DLL_PUBLIC void
2605 proto_register_field_array(const int parent, hf_register_info *hf, const int num_records);
2606 
2610 WS_DLL_PUBLIC void
2611 proto_deregister_field (const int parent, gint hf_id);
2612 
2615 WS_DLL_PUBLIC void
2616 proto_add_deregistered_data (void *data);
2617 
2621 void
2622 proto_add_deregistered_slice (gsize block_size, gpointer mem_block);
2623 
2628 WS_DLL_PUBLIC void
2629 proto_free_field_strings (ftenum_t field_type, unsigned int field_display, const void *field_strings);
2630 
2632 WS_DLL_PUBLIC void
2634 
2638 WS_DLL_PUBLIC void
2639 proto_register_subtree_array(gint * const *indices, const int num_indices);
2640 
2644 WS_DLL_PUBLIC const char* proto_registrar_get_name(const int n);
2645 
2649 WS_DLL_PUBLIC const char* proto_registrar_get_abbrev(const int n);
2650 
2654 WS_DLL_PUBLIC header_field_info* proto_registrar_get_nth(guint hfindex);
2655 
2659 WS_DLL_PUBLIC header_field_info* proto_registrar_get_byname(const char *field_name);
2660 
2664 WS_DLL_PUBLIC header_field_info* proto_registrar_get_byalias(const char *alias_name);
2665 
2669 WS_DLL_PUBLIC int proto_registrar_get_id_byname(const char *field_name);
2670 
2674 WS_DLL_PUBLIC enum ftenum proto_registrar_get_ftype(const int n);
2675 
2679 WS_DLL_PUBLIC int proto_registrar_get_parent(const int n);
2680 
2684 WS_DLL_PUBLIC gboolean proto_registrar_is_protocol(const int n);
2685 
2689 extern gint proto_registrar_get_length(const int n);
2690 
2691 
2695 WS_DLL_PUBLIC int proto_get_first_protocol(void **cookie);
2696 WS_DLL_PUBLIC int proto_get_data_protocol(void *cookie);
2697 WS_DLL_PUBLIC int proto_get_next_protocol(void **cookie);
2698 WS_DLL_PUBLIC header_field_info *proto_get_first_protocol_field(const int proto_id, void **cookie);
2699 WS_DLL_PUBLIC header_field_info *proto_get_next_protocol_field(const int proto_id, void **cookie);
2700 
2704 WS_DLL_PUBLIC int proto_name_already_registered(const gchar *name);
2705 
2709 WS_DLL_PUBLIC int proto_get_id_by_filter_name(const gchar* filter_name);
2710 
2714 WS_DLL_PUBLIC int proto_get_id_by_short_name(const gchar* short_name);
2715 
2719 WS_DLL_PUBLIC gboolean proto_can_toggle_protocol(const int proto_id);
2720 
2723 WS_DLL_PUBLIC protocol_t *find_protocol_by_id(const int proto_id);
2724 
2728 WS_DLL_PUBLIC const char *proto_get_protocol_name(const int proto_id);
2729 
2732 WS_DLL_PUBLIC int proto_get_id(const protocol_t *protocol);
2733 
2736 WS_DLL_PUBLIC const char *proto_get_protocol_short_name(const protocol_t *protocol);
2737 
2740 WS_DLL_PUBLIC const char *proto_get_protocol_long_name(const protocol_t *protocol);
2741 
2744 WS_DLL_PUBLIC gboolean proto_is_protocol_enabled(const protocol_t *protocol);
2745 
2748 WS_DLL_PUBLIC gboolean proto_is_protocol_enabled_by_default(const protocol_t *protocol);
2749 
2752 WS_DLL_PUBLIC gboolean proto_is_pino(const protocol_t *protocol);
2753 
2757 WS_DLL_PUBLIC const char *proto_get_protocol_filter_name(const int proto_id);
2758 
2764 extern void proto_add_heuristic_dissector(protocol_t *protocol, const char *short_name);
2765 
2771 WS_DLL_PUBLIC void proto_heuristic_dissector_foreach(const protocol_t *protocol, GFunc func,
2772  gpointer user_data);
2773 
2791 WS_DLL_PUBLIC void proto_get_frame_protocols(const wmem_list_t *layers,
2792  gboolean *is_ip, gboolean *is_tcp, gboolean *is_udp, gboolean *is_sctp,
2793  gboolean *is_tls, gboolean *is_rtp, gboolean *is_lte_rlc);
2794 
2800 WS_DLL_PUBLIC gboolean proto_is_frame_protocol(const wmem_list_t *layers, const char* proto_name);
2801 
2806 WS_DLL_PUBLIC gchar * proto_list_layers(const packet_info *pinfo);
2807 
2810 WS_DLL_PUBLIC void proto_disable_by_default(const int proto_id);
2811 
2815 WS_DLL_PUBLIC void proto_set_decoding(const int proto_id, const gboolean enabled);
2816 
2818 WS_DLL_PUBLIC void proto_disable_all(void);
2819 
2821 WS_DLL_PUBLIC void proto_reenable_all(void);
2822 
2825 WS_DLL_PUBLIC void proto_set_cant_toggle(const int proto_id);
2826 
2832 extern gboolean proto_check_for_protocol_or_field(const proto_tree* tree, const int id);
2833 
2839 WS_DLL_PUBLIC GPtrArray* proto_get_finfo_ptr_array(const proto_tree *tree, const int hfindex);
2840 
2845 WS_DLL_PUBLIC gboolean proto_tracking_interesting_fields(const proto_tree *tree);
2846 
2853 WS_DLL_PUBLIC GPtrArray* proto_find_finfo(proto_tree *tree, const int hfindex);
2854 
2861 WS_DLL_PUBLIC GPtrArray* proto_find_first_finfo(proto_tree *tree, const int hfindex);
2862 
2867 WS_DLL_PUBLIC GPtrArray* proto_all_finfos(proto_tree *tree);
2868 
2870 WS_DLL_PUBLIC void proto_registrar_dump_protocols(void);
2871 
2873 WS_DLL_PUBLIC void proto_registrar_dump_values(void);
2874 
2876 WS_DLL_PUBLIC void proto_registrar_dump_elastic(const gchar* filter);
2877 
2880 WS_DLL_PUBLIC gboolean proto_registrar_dump_fieldcount(void);
2881 
2883 WS_DLL_PUBLIC void proto_registrar_dump_fields(void);
2884 
2886 WS_DLL_PUBLIC gboolean proto_registrar_dump_field_completions(char *prefix);
2887 
2889 WS_DLL_PUBLIC void proto_registrar_dump_ftypes(void);
2890 
2894 WS_DLL_PUBLIC const char* proto_field_display_to_string(int field_display);
2895 
2898 WS_DLL_PUBLIC int num_tree_types;
2899 
2901 WS_DLL_PUBLIC gboolean tree_expanded(int tree_type);
2902 
2904 WS_DLL_PUBLIC void tree_expanded_set(int tree_type, gboolean value);
2905 
2907 #ifndef g_ptr_array_len
2908 #define g_ptr_array_len(a) ((a)?(a)->len:0)
2909 #endif
2910 
2911 WS_DLL_PUBLIC int
2912 hfinfo_bitshift(const header_field_info *hfinfo);
2913 
2914 struct epan_dissect;
2915 
2920 WS_DLL_PUBLIC gboolean
2921 proto_can_match_selected(field_info *finfo, struct epan_dissect *edt);
2922 
2927 WS_DLL_PUBLIC char*
2929 
2935 WS_DLL_PUBLIC field_info*
2936 proto_find_field_from_offset(proto_tree *tree, guint offset, tvbuff_t *tvb);
2937 
2942 WS_DLL_PUBLIC gchar*
2943 proto_find_undecoded_data(proto_tree *tree, guint length);
2944 
2964 WS_DLL_PUBLIC proto_item *
2965 proto_tree_add_bitmask(proto_tree *tree, tvbuff_t *tvb, const guint offset,
2966  const int hf_hdr, const gint ett, int * const *fields, const guint encoding);
2967 
2990 WS_DLL_PUBLIC proto_item *
2991 proto_tree_add_bitmask_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset,
2992  const int hf_hdr, const gint ett, int * const *fields,
2993  const guint encoding, guint64 *retval);
2994 
3018 WS_DLL_PUBLIC proto_item *
3019 proto_tree_add_bitmask_with_flags(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3020  const int hf_hdr, const gint ett, int * const *fields, const guint encoding, const int flags);
3021 
3048 WS_DLL_PUBLIC proto_item *
3049 proto_tree_add_bitmask_with_flags_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3050  const int hf_hdr, const gint ett, int * const *fields,
3051  const guint encoding, const int flags, guint64 *retval);
3052 
3072 WS_DLL_PUBLIC proto_item *
3073 proto_tree_add_bitmask_value(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3074  const int hf_hdr, const gint ett, int * const *fields, const guint64 value);
3075 
3099 WS_DLL_PUBLIC proto_item *
3100 proto_tree_add_bitmask_value_with_flags(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3101  const int hf_hdr, const gint ett, int * const *fields, const guint64 value, const int flags);
3102 
3117 WS_DLL_PUBLIC void
3118 proto_tree_add_bitmask_list(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3119  const int len, int * const *fields, const guint encoding);
3120 
3136 WS_DLL_PUBLIC void
3137 proto_tree_add_bitmask_list_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3138  const int len, int * const *fields, const guint encoding, guint64 *retval);
3139 
3154 WS_DLL_PUBLIC void
3155 proto_tree_add_bitmask_list_value(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3156  const int len, int * const *fields, const guint64 value);
3157 
3158 
3180 WS_DLL_PUBLIC proto_item *
3181 proto_tree_add_bitmask_len(proto_tree *tree, tvbuff_t *tvb, const guint offset, const guint len,
3182  const int hf_hdr, const gint ett, int * const *fields, struct expert_field* exp, const guint encoding);
3183 
3196 WS_DLL_PUBLIC proto_item *
3197 proto_tree_add_bitmask_text(proto_tree *tree, tvbuff_t *tvb, const guint offset, const guint len,
3198  const char *name, const char *fallback,
3199  const gint ett, int * const *fields, const guint encoding, const int flags);
3200 
3201 #define BMT_NO_FLAGS 0x00
3202 #define BMT_NO_APPEND 0x01
3203 #define BMT_NO_INT 0x02
3204 #define BMT_NO_FALSE 0x04
3205 #define BMT_NO_TFS 0x08
3216 WS_DLL_PUBLIC proto_item *
3217 proto_tree_add_bits_item(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset,
3218  const gint no_of_bits, const guint encoding);
3219 
3235 WS_DLL_PUBLIC proto_item *
3236 proto_tree_add_split_bits_item_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb,
3237  const guint bit_offset, const crumb_spec_t *crumb_spec, guint64 *return_value);
3238 
3252 void
3253 proto_tree_add_split_bits_crumb(proto_tree *tree, const int hf_index, tvbuff_t *tvb,
3254  const guint bit_offset, const crumb_spec_t *crumb_spec, guint16 crumb_index);
3255 
3266 WS_DLL_PUBLIC proto_item *
3267 proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb,
3268  const guint bit_offset, const gint no_of_bits, guint64 *return_value, const guint encoding);
3269 
3282 WS_DLL_PUBLIC proto_item *
3284  const guint bit_offset, const gint no_of_bits, guint32 value, const guint encoding,
3285  const char *format, ...)
3286  G_GNUC_PRINTF(8,9);
3287 
3300 WS_DLL_PUBLIC proto_item *
3302  const guint bit_offset, const gint no_of_bits, guint64 value, const guint encoding,
3303  const char *format, ...)
3304  G_GNUC_PRINTF(8,9);
3305 
3319 proto_item *
3321  const guint bit_offset, const gint no_of_bits, guint32 value, const guint encoding,
3322  const char *format, ...)
3323  G_GNUC_PRINTF(8,9);
3324 
3338 proto_item *
3340  const guint bit_offset, const gint no_of_bits, guint64 value, const guint encoding,
3341  const char *format, ...)
3342  G_GNUC_PRINTF(8,9);
3343 
3357 proto_item *
3359  const guint bit_offset, const gint no_of_bits, gint32 value, const guint encoding,
3360  const char *format, ...)
3361  G_GNUC_PRINTF(8,9);
3362 
3376 proto_item *
3378  const guint bit_offset, const gint no_of_bits, gint64 value, const guint encoding,
3379  const char *format, ...)
3380  G_GNUC_PRINTF(8,9);
3381 
3395 proto_item *
3397  const guint bit_offset, const gint no_of_bits, float value, const guint encoding,
3398  const char *format, ...)
3399  G_GNUC_PRINTF(8,9);
3400 
3401 
3410 WS_DLL_PUBLIC proto_item *
3411 proto_tree_add_ts_23_038_7bits_packed_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb,
3412  const guint bit_offset, const gint no_of_chars);
3413 
3421 WS_DLL_PUBLIC proto_item *
3422 proto_tree_add_ascii_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb,
3423  const guint bit_offset, const gint no_of_chars);
3424 
3442 WS_DLL_PUBLIC proto_item *
3443 proto_tree_add_checksum(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3444  const int hf_checksum, const int hf_checksum_status, struct expert_field* bad_checksum_expert,
3445  packet_info *pinfo, guint32 computed_checksum, const guint encoding, const guint flags);
3446 
3464 WS_DLL_PUBLIC proto_item*
3465 proto_tree_add_checksum_bytes(proto_tree *tree, tvbuff_t *tvb, const guint offset,
3466  const int hf_checksum, const int hf_checksum_status, struct expert_field* bad_checksum_expert,
3467  packet_info *pinfo, const uint8_t *computed_checksum, size_t checksum_len, const guint flags);
3468 
3469 typedef enum
3470 {
3471  PROTO_CHECKSUM_E_BAD = 0,
3472  PROTO_CHECKSUM_E_GOOD,
3473  PROTO_CHECKSUM_E_UNVERIFIED,
3474  PROTO_CHECKSUM_E_NOT_PRESENT,
3475  PROTO_CHECKSUM_E_ILLEGAL
3476 } proto_checksum_enum_e;
3477 
3478 #define PROTO_CHECKSUM_NO_FLAGS 0x00
3479 #define PROTO_CHECKSUM_VERIFY 0x01
3480 #define PROTO_CHECKSUM_GENERATED 0x02
3481 #define PROTO_CHECKSUM_IN_CKSUM 0x04
3482 #define PROTO_CHECKSUM_ZERO 0x08
3483 #define PROTO_CHECKSUM_NOT_PRESENT 0x10
3485 WS_DLL_PUBLIC const value_string proto_checksum_vals[];
3486 
3490 WS_DLL_PUBLIC guchar
3491 proto_check_field_name(const gchar *field_name);
3492 
3497 WS_DLL_PUBLIC guchar
3498 proto_check_field_name_lower(const gchar *field_name);
3499 
3500 
3508 const gchar *
3509 proto_custom_set(proto_tree* tree, GSList *field_id,
3510  gint occurrence,
3511  gchar *result,
3512  gchar *expr, const int size );
3513 
3519 gchar *
3520 proto_custom_get_filter(struct epan_dissect *edt, GSList *field_id, gint occurrence);
3521 
3524 const char *
3525 hfinfo_char_value_format_display(int display, char buf[7], guint32 value);
3526 
3527 #ifdef __cplusplus
3528 }
3529 #endif /* __cplusplus */
3530 
3531 #endif /* proto.h */
3532 
3533 /*
3534  * Editor modelines - https://www.wireshark.org/tools/modelines.html
3535  *
3536  * Local variables:
3537  * c-basic-offset: 4
3538  * tab-width: 8
3539  * indent-tabs-mode: nil
3540  * End:
3541  *
3542  * vi: set shiftwidth=4 tabstop=8 expandtab:
3543  * :indentSize=4:tabSize=8:noTabs=true:
3544  */
WS_DLL_PUBLIC int hf_text_only
Definition: proto.h:56
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_guid(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const e_guid_t *value_ptr)
Definition: proto.c:5036
void proto_tree_add_split_bits_crumb(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const crumb_spec_t *crumb_spec, guint16 crumb_index)
Definition: proto.c:13075
WS_DLL_PUBLIC void proto_get_frame_protocols(const wmem_list_t *layers, gboolean *is_ip, gboolean *is_tcp, gboolean *is_udp, gboolean *is_sctp, gboolean *is_tls, gboolean *is_rtp, gboolean *is_lte_rlc)
Definition: proto.c:8204
WS_DLL_PUBLIC gboolean proto_registrar_is_protocol(const int n)
Definition: proto.c:10883
WS_DLL_PUBLIC gboolean proto_tracking_interesting_fields(const proto_tree *tree)
Definition: proto.c:10938
WS_DLL_PUBLIC proto_tree * proto_tree_get_root(proto_tree *tree)
Definition: proto.c:7711
#define ITEM_LABEL_LENGTH
Definition: proto.h:59
WS_DLL_PUBLIC const char * proto_field_display_to_string(int field_display)
Definition: proto.c:8692
WS_DLL_PUBLIC const char * proto_registrar_get_abbrev(const int n)
Definition: proto.c:10856
WS_DLL_PUBLIC proto_item * proto_tree_add_time_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, nstime_t *retval, gint *endoff, gint *err)
Definition: proto.c:4458
struct _item_label_t item_label_t
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ether_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC void proto_item_fill_label(field_info *finfo, gchar *label_str)
Definition: proto.c:9571
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item proto_item proto_item * proto_tree_add_int_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, gint32 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC gboolean proto_is_protocol_enabled_by_default(const protocol_t *protocol)
Definition: proto.c:8311
WS_DLL_PUBLIC void proto_item_set_end(proto_item *pi, tvbuff_t *tvb, gint end)
Definition: proto.c:7511
#define FI_URL
Definition: proto.h:854
WS_DLL_PUBLIC gchar * proto_list_layers(const packet_info *pinfo)
Definition: proto.c:8269
WS_DLL_PUBLIC gboolean tree_expanded(int tree_type)
Definition: proto.c:13729
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_uint_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, gfloat *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:3730
void proto_tree_prime_with_hfid(proto_tree *tree, const int hfid)
WS_DLL_PUBLIC int proto_item_get_len(const proto_item *pi)
Definition: proto.c:7530
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_protocol_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *format,...) G_GNUC_PRINTF(6
WS_DLL_PUBLIC proto_item * proto_tree_add_bytes_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *start_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC int proto_name_already_registered(const gchar *name)
Definition: proto.c:8105
WS_DLL_PUBLIC proto_item * proto_tree_add_none_format(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const gint start, gint length, const char *format,...) G_GNUC_PRINTF(6
WS_DLL_PUBLIC proto_item * proto_tree_add_string_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_boolean_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_eui64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint64 value, const char *format,...) G_GNUC_PRINTF(7
void proto_tree_set_fake_protocols(proto_tree *tree, gboolean fake_protocols)
Definition: proto.c:864
WS_DLL_PUBLIC int proto_get_id_by_short_name(const gchar *short_name)
Definition: proto.c:8129
WS_DLL_PUBLIC gboolean proto_is_pino(const protocol_t *protocol)
Definition: proto.c:8292
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_display_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, wmem_allocator_t *scope, char **retval)
Definition: proto.c:4136
WS_DLL_PUBLIC protocol_t * find_protocol_by_id(const int proto_id)
Definition: proto.c:8084
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_value_with_flags(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint64 value, const int flags)
Definition: proto.c:12563
WS_DLL_PUBLIC void proto_register_field_array(const int parent, hf_register_info *hf, const int num_records)
Definition: proto.c:8417
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_with_flags_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint encoding, const int flags, guint64 *retval)
Definition: proto.c:12494
WS_DLL_PUBLIC proto_item * proto_tree_add_int64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint64 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC gchar * proto_find_undecoded_data(proto_tree *tree, guint length)
Definition: proto.c:11128
WS_DLL_PUBLIC proto_item * proto_tree_add_uint64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint64 value, const char *format,...) G_GNUC_PRINTF(7
hf_ref_type
Definition: proto.h:752
WS_DLL_PUBLIC void WS_DLL_PUBLIC void proto_item_append_text(proto_item *pi, const char *format,...) G_GNUC_PRINTF(2
WS_DLL_PUBLIC proto_item * proto_tree_add_mac48_detail(const mac_hf_list_t *list_specific, const mac_hf_list_t *list_generic, gint idx, tvbuff_t *tvb, proto_tree *tree, gint offset)
Definition: proto.c:6161
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipv4_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, ws_in4_addr value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint64 value)
Definition: proto.c:5805
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_bytes(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *start_ptr)
Definition: proto.c:4624
WS_DLL_PUBLIC gboolean proto_registrar_dump_fieldcount(void)
Definition: proto.c:11430
proto_item proto_item * proto_tree_add_text_valist_internal(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, const char *format, va_list ap) G_GNUC_PRINTF(5
WS_DLL_PUBLIC enum ftenum proto_registrar_get_ftype(const int n)
Definition: proto.c:10865
#define FI_RESET_FLAG(fi, flag)
Definition: proto.h:877
WS_DLL_PUBLIC void proto_initialize_all_prefixes(void)
Definition: proto.c:976
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_uint64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint64 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC void proto_tree_set_appendix(proto_tree *tree, tvbuff_t *tvb, gint start, const gint length)
Definition: proto.c:7768
WS_DLL_PUBLIC proto_item * proto_tree_add_ipv4_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, ws_in4_addr value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC int proto_registrar_get_id_byname(const char *field_name)
Definition: proto.c:1060
struct hf_register_info hf_register_info
WS_DLL_PUBLIC void proto_tree_add_bitmask_list(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int len, int *const *fields, const guint encoding)
Definition: proto.c:12591
WS_DLL_PUBLIC proto_item * proto_tree_add_guid_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const e_guid_t *value_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_checksum_bytes(proto_tree *tree, tvbuff_t *tvb, const guint 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 guint flags)
Definition: proto.c:13624
WS_DLL_PUBLIC char * proto_construct_match_selected_string(field_info *finfo, struct epan_dissect *edt)
Definition: proto.c:12067
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *value)
Definition: proto.c:5216
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item proto_item proto_item proto_item proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ts_23_038_7bits_packed_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const guint bit_offset, const gint no_of_chars)
Definition: proto.c:13461
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_display_string_and_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, wmem_allocator_t *scope, char **retval, gint *lenretval)
Definition: proto.c:4020
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_int64_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint64 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC 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:7903
WS_DLL_PUBLIC proto_item * proto_tree_add_double_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, double value, const char *format,...) G_GNUC_PRINTF(7
struct _proto_node proto_node
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, ws_in6_addr *retval)
Parse an ipv6 address from the buffer and add it to the tree, writing the value to the pointer specif...
Definition: proto.c:3861
proto_item proto_item WS_DLL_PUBLIC proto_tree * proto_tree_add_subtree(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, gint idx, proto_item **tree_item, const char *text)
Definition: proto.c:1428
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_oid(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value_ptr)
Definition: proto.c:5113
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint encoding)
Definition: proto.c:12482
WS_DLL_PUBLIC void proto_registrar_dump_values(void)
Definition: proto.c:11215
WS_DLL_PUBLIC proto_item * proto_tree_add_split_bits_item_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const crumb_spec_t *crumb_spec, guint64 *return_value)
Definition: proto.c:12896
WS_DLL_PUBLIC void proto_item_set_bits_offset_len(proto_item *ti, int bits_offset, int bits_len)
Definition: proto.c:7541
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_int64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint64 value)
Definition: proto.c:5992
#define FI_GET_FLAG(fi, flag)
Definition: proto.h:869
proto_node proto_item
Definition: proto.h:909
WS_DLL_PUBLIC proto_item * proto_tree_add_ether_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC const char * proto_get_protocol_long_name(const protocol_t *protocol)
Definition: proto.c:8163
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item struct _mac_hf_list_t mac_hf_list_t
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_oid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC gboolean proto_is_frame_protocol(const wmem_list_t *layers, const char *proto_name)
Definition: proto.c:8244
WS_DLL_PUBLIC proto_tree * proto_item_add_subtree(proto_item *pi, const gint idx) G_GNUC_WARN_UNUSED_RESULT
Definition: proto.c:7624
WS_DLL_PUBLIC proto_tree * proto_tree_add_subtree_format(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, gint idx, proto_item **tree_item, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC header_field_info * proto_registrar_get_byname(const char *field_name)
Definition: proto.c:987
WS_DLL_PUBLIC header_field_info * proto_registrar_get_byalias(const char *alias_name)
Definition: proto.c:1029
WS_DLL_PUBLIC int proto_registrar_get_parent(const int n)
Definition: proto.c:10874
proto_tree * proto_tree_create_root(struct _packet_info *pinfo)
Definition: proto.c:7562
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_string_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value)
Definition: proto.c:5331
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_boolean(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value)
Definition: proto.c:5402
WS_DLL_PUBLIC proto_item * proto_tree_add_ipxnet_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
#define FI_HIDDEN
Definition: proto.h:849
WS_DLL_PUBLIC void proto_deregister_field(const int parent, gint hf_id)
Definition: proto.c:8451
WS_DLL_PUBLIC proto_item * proto_tree_add_int_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_with_flags(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint encoding, const int flags)
Definition: proto.c:12529
WS_DLL_PUBLIC void proto_tree_add_bitmask_list_value(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int len, int *const *fields, const guint64 value)
Definition: proto.c:12620
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item * proto_tree_add_boolean_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, guint32 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC proto_tree * proto_item_get_subtree(proto_item *pi)
Definition: proto.c:7642
WS_DLL_PUBLIC proto_item * proto_tree_add_ipv6_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const ws_in6_addr *value_ptr, const char *format,...) G_GNUC_PRINTF(7
proto_item * proto_tree_add_text_internal(proto_tree *tree, tvbuff_t *tvb, gint start, gint length, const char *format,...) G_GNUC_PRINTF(5
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_uint(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value)
Definition: proto.c:5712
WS_DLL_PUBLIC proto_item * proto_tree_add_bits_item(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, const guint encoding)
Definition: proto.c:12717
WS_DLL_PUBLIC GPtrArray * proto_find_first_finfo(proto_tree *tree, const int hfindex)
Definition: proto.c:11015
WS_DLL_PUBLIC proto_item * proto_item_get_parent(const proto_item *pi)
Definition: proto.c:7654
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_float_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, float value, const char *format,...) G_GNUC_PRINTF(7
struct field_info field_info
WS_DLL_PUBLIC proto_item * proto_tree_add_bytes_with_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *start_ptr, gint ptr_length)
Definition: proto.c:4649
WS_DLL_PUBLIC void tree_expanded_set(int tree_type, gboolean value)
Definition: proto.c:13739
WS_DLL_PUBLIC proto_item * proto_tree_add_time_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, nstime_t *value_ptr, const char *format,...) G_GNUC_PRINTF(7
proto_item * proto_tree_add_format_wsp_text(proto_tree *tree, tvbuff_t *tvb, gint start, gint length)
Definition: proto.c:1498
WS_DLL_PUBLIC GPtrArray * proto_get_finfo_ptr_array(const proto_tree *tree, const int hfindex)
Definition: proto.c:10925
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_uint64_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, guint64 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_double(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, gdouble *retval)
Parse a double from the buffer and add it to the tree, returning the item added and the parsed value ...
Definition: proto.c:3769
WS_DLL_PUBLIC void proto_heuristic_dissector_foreach(const protocol_t *protocol, GFunc func, gpointer user_data)
Definition: proto.c:8195
WS_DLL_PUBLIC void proto_add_deregistered_data(void *data)
Definition: proto.c:8481
field_display_e
Definition: proto.h:679
WS_DLL_PUBLIC proto_item * proto_tree_add_eui64_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint64 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_string_and_length(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, wmem_allocator_t *scope, const guint8 **retval, gint *lenretval)
Definition: proto.c:3939
void(* prefix_initializer_t)(const char *match)
Definition: proto.h:2585
WS_DLL_PUBLIC void proto_tree_add_bitmask_list_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int len, int *const *fields, const guint encoding, guint64 *retval)
Definition: proto.c:12604
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_int_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipv4(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, ws_in4_addr value)
Definition: proto.c:4880
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipv6(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const ws_in6_addr *value_ptr)
Definition: proto.c:4945
WS_DLL_PUBLIC proto_item * proto_tree_add_uint_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, guint32 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC gboolean proto_can_toggle_protocol(const int proto_id)
Definition: proto.c:8321
void proto_cleanup(void)
Definition: proto.c:714
gboolean proto_deregister_protocol(const char *short_name)
Definition: proto.c:7962
WS_DLL_PUBLIC const char * proto_get_protocol_filter_name(const int proto_id)
Definition: proto.c:8171
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_value(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint64 value)
Definition: proto.c:12554
WS_DLL_PUBLIC gboolean proto_registrar_dump_field_completions(char *prefix)
Definition: proto.c:11811
WS_DLL_PUBLIC int proto_item_fill_display_label(field_info *fi, gchar *display_label_str, const int label_str_size)
Definition: proto.c:6802
WS_DLL_PUBLIC guchar proto_check_field_name_lower(const gchar *field_name)
Definition: proto.c:13723
WS_DLL_PUBLIC WS_NORETURN void proto_report_dissector_bug(const char *format,...) G_GNUC_PRINTF(1
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_time_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, wmem_allocator_t *scope, char **retval)
Definition: proto.c:4148
WS_DLL_PUBLIC gboolean proto_is_protocol_enabled(const protocol_t *protocol)
Definition: proto.c:8298
void proto_add_heuristic_dissector(protocol_t *protocol, const char *short_name)
Definition: proto.c:8181
WS_DLL_PUBLIC proto_item * proto_tree_add_bits_ret_val(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, guint64 *return_value, const guint encoding)
Definition: proto.c:13105
WS_DLL_PUBLIC void proto_tree_free(proto_tree *tree)
Definition: proto.c:828
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, wmem_allocator_t *scope, const guint8 **retval)
Definition: proto.c:4010
WS_DLL_PUBLIC void proto_registrar_dump_fields(void)
Definition: proto.c:11700
WS_DLL_PUBLIC proto_item * proto_tree_add_debug_text(proto_tree *tree, const char *format,...) G_GNUC_PRINTF(2
WS_DLL_PUBLIC int proto_get_first_protocol(void **cookie)
Definition: proto.c:8022
WS_DLL_PUBLIC GPtrArray * proto_find_finfo(proto_tree *tree, const int hfindex)
Definition: proto.c:10996
WS_DLL_PUBLIC void proto_tree_move_item(proto_tree *tree, proto_item *fixed_item, proto_item *item_to_move)
Definition: proto.c:7721
gint proto_registrar_get_length(const int n)
Definition: proto.c:10896
const gchar * proto_custom_set(proto_tree *tree, GSList *field_id, gint occurrence, gchar *result, gchar *expr, const int size)
Definition: proto.c:7076
proto_node proto_tree
Definition: proto.h:907
WS_DLL_PUBLIC proto_item * proto_tree_add_item_new(proto_tree *tree, header_field_info *hfinfo, tvbuff_t *tvb, const gint start, gint length, const guint encoding)
Definition: proto.c:4227
WS_DLL_PUBLIC const char * proto_registrar_get_name(const int n)
Definition: proto.c:10847
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_ret_uint64(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_hdr, const gint ett, int *const *fields, const guint encoding, guint64 *retval)
Definition: proto.c:12456
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_eui64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint64 value)
Definition: proto.c:6087
WS_DLL_PUBLIC field_info * proto_find_field_from_offset(proto_tree *tree, guint offset, tvbuff_t *tvb)
Definition: proto.c:11089
WS_DLL_PUBLIC void proto_disable_by_default(const int proto_id)
Definition: proto.c:8334
WS_DLL_PUBLIC void proto_item_set_text(proto_item *pi, const char *format,...) G_GNUC_PRINTF(2
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item proto_item proto_item proto_item * proto_tree_add_int64_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, gint64 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC gboolean proto_tree_set_visible(proto_tree *tree, gboolean visible)
Definition: proto.c:854
WS_DLL_PUBLIC proto_item * proto_tree_add_oid_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *value_ptr, const char *format,...) G_GNUC_PRINTF(7
gchar * proto_custom_get_filter(struct epan_dissect *edt, GSList *field_id, gint occurrence)
Definition: proto.c:7227
WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void proto_item_prepend_text(proto_item *pi, const char *format,...) G_GNUC_PRINTF(2
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_ether(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, guint8 *retval)
Parse an ethernet address from the buffer and add it to the tree, writing the value to the pointer sp...
Definition: proto.c:3900
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipxnet_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_double_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, double value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC guchar proto_check_field_name(const gchar *field_name)
Definition: proto.c:13717
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item proto_item proto_item proto_item proto_item * proto_tree_add_float_bits_format_value(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, float value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void WS_DLL_PUBLIC void proto_item_set_len(proto_item *pi, const gint length)
Definition: proto.c:7483
WS_DLL_PUBLIC void proto_register_plugin(const proto_plugin *plugin)
WS_DLL_PUBLIC int proto_get_id_by_filter_name(const gchar *filter_name)
Definition: proto.c:8115
WS_DLL_PUBLIC void proto_set_cant_toggle(const int proto_id)
Definition: proto.c:8396
WS_DLL_PUBLIC void proto_register_prefix(const char *prefix, prefix_initializer_t initializer)
Definition: proto.c:959
WS_DLL_PUBLIC int proto_register_protocol(const char *name, const char *short_name, const char *filter_name)
Definition: proto.c:7833
WS_DLL_PUBLIC proto_item * proto_tree_add_checksum(proto_tree *tree, tvbuff_t *tvb, const guint offset, const int hf_checksum, const int hf_checksum_status, struct expert_field *bad_checksum_expert, packet_info *pinfo, guint32 computed_checksum, const guint encoding, const guint flags)
Definition: proto.c:13527
WS_DLL_PUBLIC void proto_registrar_dump_protocols(void)
Definition: proto.c:11152
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_len(proto_tree *tree, tvbuff_t *tvb, const guint offset, const guint len, const int hf_hdr, const gint ett, int *const *fields, struct expert_field *exp, const guint encoding)
Definition: proto.c:12642
WS_DLL_PUBLIC gboolean proto_can_match_selected(field_info *finfo, struct epan_dissect *edt)
Definition: proto.c:12055
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_boolean_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_float_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, float value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item * proto_tree_add_bitmask_text(proto_tree *tree, tvbuff_t *tvb, const guint offset, const guint len, const char *name, const char *fallback, const gint ett, int *const *fields, const guint encoding, const int flags)
Definition: proto.c:12694
WS_DLL_PUBLIC header_field_info * proto_registrar_get_nth(guint hfindex)
Definition: proto.c:901
WS_DLL_PUBLIC GPtrArray * proto_all_finfos(proto_tree *tree)
Definition: proto.c:11042
WS_DLL_PUBLIC const char * proto_get_protocol_name(const int proto_id)
Definition: proto.c:8143
WS_DLL_PUBLIC char * proto_item_get_display_repr(wmem_allocator_t *scope, proto_item *pi)
Definition: proto.c:7550
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipxnet(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value)
Definition: proto.c:4815
gboolean proto_check_for_protocol_or_field(const proto_tree *tree, const int id)
Definition: proto.c:10907
void proto_init(GSList *register_all_plugin_protocols_list, GSList *register_all_plugin_handoffs_list, register_cb cb, void *client_data)
WS_DLL_PUBLIC void proto_registrar_dump_ftypes(void)
Definition: proto.c:11876
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_time(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const nstime_t *value_ptr)
Definition: proto.c:4748
WS_DLL_PUBLIC proto_item * proto_tree_add_item_new_ret_length(proto_tree *tree, header_field_info *hfinfo, tvbuff_t *tvb, const gint start, gint length, const guint encoding, gint *lenretval)
Definition: proto.c:4262
WS_DLL_PUBLIC proto_item * proto_tree_add_ascii_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const guint bit_offset, const gint no_of_chars)
Definition: proto.c:13489
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_float(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, float value)
Definition: proto.c:5582
WS_DLL_PUBLIC void proto_reenable_all(void)
Definition: proto.c:8379
WS_DLL_PUBLIC void proto_register_subtree_array(gint *const *indices, const int num_indices)
Definition: proto.c:9435
WS_DLL_PUBLIC void proto_disable_all(void)
Definition: proto.c:8357
WS_DLL_PUBLIC gboolean proto_field_is_referenced(proto_tree *tree, int proto_id)
Definition: proto.c:877
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_int(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gint32 value)
Definition: proto.c:5897
WS_DLL_PUBLIC proto_item * proto_tree_add_uint_format_value(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint32 value, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC void proto_set_decoding(const int proto_id, const gboolean enabled)
Definition: proto.c:8346
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item proto_item proto_item * proto_tree_add_boolean_bits_format_value64(proto_tree *tree, const int hf_index, tvbuff_t *tvb, const guint bit_offset, const gint no_of_bits, guint64 value, const guint encoding, const char *format,...) G_GNUC_PRINTF(8
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_time_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, nstime_t *value_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC int num_tree_types
Definition: proto.h:2898
#define PITEM_FINFO(proto_item)
Definition: proto.h:971
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_bytes_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const guint8 *start_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_guid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const e_guid_t *value_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC proto_tree * proto_tree_get_parent_tree(proto_tree *tree)
Definition: proto.c:7697
WS_DLL_PUBLIC void proto_free_deregistered_fields(void)
Definition: proto.c:8643
WS_DLL_PUBLIC proto_item * proto_tree_get_parent(proto_tree *tree)
Definition: proto.c:7690
WS_DLL_PUBLIC proto_item * proto_tree_add_item_ret_int(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, gint32 *retval)
Definition: proto.c:3133
WS_DLL_PUBLIC const char * proto_get_protocol_short_name(const protocol_t *protocol)
Definition: proto.c:8155
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_double(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, double value)
Definition: proto.c:5647
#define FI_GENERATED
Definition: proto.h:852
#define FI_SET_FLAG(fi, flag)
Definition: proto.h:871
WS_DLL_PUBLIC proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err)
Definition: proto.c:4330
WS_DLL_PUBLIC int proto_get_id(const protocol_t *protocol)
Definition: proto.c:8099
WS_DLL_PUBLIC void proto_register_alias(const int proto_id, const char *alias_name)
Definition: proto.c:8004
WS_DLL_PUBLIC void proto_registrar_dump_elastic(const gchar *filter)
Definition: proto.c:11538
WS_DLL_PUBLIC proto_item WS_DLL_PUBLIC proto_item * proto_tree_add_ipv6_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const ws_in6_addr *value_ptr, const char *format,...) G_GNUC_PRINTF(7
WS_DLL_PUBLIC void proto_free_field_strings(ftenum_t field_type, unsigned int field_display, const void *field_strings)
Definition: proto.c:8497
WS_DLL_PUBLIC proto_tree proto_item * proto_tree_add_format_text(proto_tree *tree, tvbuff_t *tvb, gint start, gint length)
Definition: proto.c:1479
WS_DLL_PUBLIC proto_item * proto_item_get_parent_nth(proto_item *pi, int gen)
Definition: proto.c:7676
void proto_add_deregistered_slice(gsize block_size, gpointer mem_block)
Definition: proto.c:8487
@ HF_REF_TYPE_INDIRECT
Definition: proto.h:754
@ HF_REF_TYPE_NONE
Definition: proto.h:753
@ HF_REF_TYPE_DIRECT
Definition: proto.h:755
@ ABSOLUTE_TIME_DOY_UTC
Definition: proto.h:712
@ BASE_PT_UDP
Definition: proto.h:701
@ BASE_HEX_DEC
Definition: proto.h:687
@ BASE_HEX
Definition: proto.h:684
@ ABSOLUTE_TIME_NTP_UTC
Definition: proto.h:713
@ BASE_EXP
Definition: proto.h:689
@ ABSOLUTE_TIME_UTC
Definition: proto.h:711
@ BASE_DEC
Definition: proto.h:683
@ ABSOLUTE_TIME_UNIX
Definition: proto.h:714
@ BASE_PT_TCP
Definition: proto.h:702
@ BASE_DEC_HEX
Definition: proto.h:686
@ BASE_OUI
Definition: proto.h:707
@ SEP_COLON
Definition: proto.h:694
@ BASE_PT_SCTP
Definition: proto.h:704
@ BASE_NETMASK
Definition: proto.h:698
@ ABSOLUTE_TIME_LOCAL
Definition: proto.h:710
@ BASE_PT_DCCP
Definition: proto.h:703
@ BASE_STR_WSP
Definition: proto.h:717
@ BASE_NONE
Definition: proto.h:680
@ SEP_DOT
Definition: proto.h:692
@ SEP_DASH
Definition: proto.h:693
@ SEP_SPACE
Definition: proto.h:695
@ BASE_OCT
Definition: proto.h:685
@ BASE_CUSTOM
Definition: proto.h:688
Definition: guid-utils.h:22
Definition: ftypes-int.h:17
Definition: proto.h:762
int same_name_prev_id
Definition: proto.h:779
guint64 bitmask
Definition: proto.h:772
int display
Definition: proto.h:767
const void * strings
Definition: proto.h:768
const char * name
Definition: proto.h:764
hf_ref_type ref_type
Definition: proto.h:778
int parent
Definition: proto.h:777
enum ftenum type
Definition: proto.h:766
const char * abbrev
Definition: proto.h:765
const char * blurb
Definition: proto.h:773
int id
Definition: proto.h:776
header_field_info * same_name_next
Definition: proto.h:780
Definition: proto.h:804
Definition: proto.h:2490
Definition: packet_info.h:44
Definition: plugins.c:29
Definition: proto.h:897
Definition: proto.c:361
Definition: value_string.h:26
Definition: wmem_allocator.h:27
Definition: wmem_list.c:23
Definition: proto.h:834
Definition: inet_ipv6.h:21
Definition: epan_dissect.h:28
Definition: expert.h:39
Definition: proto.h:809
gint tree_type
Definition: proto.h:815
guint32 flags
Definition: proto.h:816
gint appendix_start
Definition: proto.h:813
tvbuff_t * ds_tvb
Definition: proto.h:818
int proto_layer_num
Definition: proto.h:821
int total_layer_num
Definition: proto.h:820
gint length
Definition: proto.h:812
gint start
Definition: proto.h:811
item_label_t * rep
Definition: proto.h:817
header_field_info * hfinfo
Definition: proto.h:810
gint appendix_length
Definition: proto.h:814
Definition: proto.h:798
int * p_id
Definition: proto.h:799
header_field_info hfinfo
Definition: proto.h:800
Definition: nstime.h:26
Definition: proto.h:1067
Definition: proto.h:888
Definition: tvbuff-int.h:35