1 | initial version |
912 /**
913 * Writes the hex dump of a node. A json array is written containing the hex dump, position, length, bitmask and type of
914 * the node.
915 */
958 /* Dump raw hex-encoded dissected information including position, length, bitmask, type */
959 json_dumper_value_anyf(pdata->dumper, "%" G_GINT32_MODIFIER "d", fi->start);
960 json_dumper_value_anyf(pdata->dumper, "%" G_GINT32_MODIFIER "d", fi->length);
961 json_dumper_value_anyf(pdata->dumper, "%" G_GUINT64_FORMAT, fi->hfinfo->bitmask);
962 json_dumper_value_anyf(pdata->dumper, "%" G_GINT32_MODIFIER "d", (gint32)fi->value.ftype->ftype);
190 BITMASK Used to mask a field not 8-bit aligned or with a size other
191 than a multiple of 8 bits
1201 bitmask (BITMASK)
1202 -----------------
1203 If the field is a bitfield, then the bitmask is the mask which will
1204 leave only the bits needed to make the field when ANDed with a value.
1205 The proto_tree routines will calculate 'bitshift' automatically
1206 from 'bitmask', by finding the rightmost set bit in the bitmask.
1207 This shift is applied before applying string mapping functions or
1208 filtering.
1209
1210 If the field is not a bitfield, then bitmask should be set to 0.
type (FIELDTYPE)
825 ----------------
826 The type of value this field holds. The current field types are:
827
828 FT_NONE No field type. Used for fields that
829 aren't given a value, and that can only
830 be tested for presence or absence; a
831 field that represents a data structure,
832 with a subtree below it containing
833 fields for the members of the structure,
834 or that represents an array with a
835 subtree below it containing fields for
836 the members of the array, might be an
837 FT_NONE field.
838 FT_PROTOCOL Used for protocols which will be placing
839 themselves as top-level items in the
840 "Packet Details" pane of the UI.
841 FT_BOOLEAN 0 means "false", any other value means
842 "true".
843 FT_FRAMENUM A frame number; if this is used, the "Go
844 To Corresponding Frame" menu item can
845 work on that field.
846 FT_CHAR An 8-bit ASCII character. It's treated similarly to an
847 FT_UINT8, but is displayed as a C-style character
848 constant.
849 FT_UINT8 An 8-bit unsigned integer.
850 FT_UINT16 A 16-bit unsigned integer.
851 FT_UINT24 A 24-bit unsigned integer.
852 FT_UINT32 A 32-bit unsigned integer.
853 FT_UINT40 A 40-bit unsigned integer.
854 FT_UINT48 A 48-bit unsigned integer.
855 FT_UINT56 A 56-bit unsigned integer.
856 FT_UINT64 A 64-bit unsigned integer.
857 FT_INT8 An 8-bit signed integer.
858 FT_INT16 A 16-bit signed integer.
859 FT_INT24 A 24-bit signed integer.
860 FT_INT32 A 32-bit signed integer.
861 FT_INT40 A 40-bit signed integer.
862 FT_INT48 A 48-bit signed integer.
863 FT_INT56 A 56-bit signed integer.
864 FT_INT64 A 64-bit signed integer.
865 FT_FLOAT A single-precision floating point number.
866 FT_DOUBLE A double-precision floating point number.
867 FT_ABSOLUTE_TIME An absolute time from some fixed point in time,
868 displayed as the date, followed by the time, as
869 hours, minutes, and seconds with 9 digits after
870 the decimal point.
871 FT_RELATIVE_TIME Seconds (4 bytes) and nanoseconds (4 bytes)
872 of time relative to an arbitrary time.
873 displayed as seconds and 9 digits
874 after the decimal point.
875 FT_STRING A string of characters, not necessarily
876 NULL-terminated, but possibly NULL-padded.
877 This, and the other string-of-characters
878 types, are to be used for text strings,
879 not raw binary data.
880 FT_STRINGZ A NULL-terminated string of characters.
881 The string length is normally the length
882 given in the proto_tree_add_item() call.
883 However if the length given in the call
884 is -1, then the length used is that
885 returned by calling tvb_strsize().
886 FT_UINT_STRING A counted string of characters, consisting
887 of a count (represented as an integral value,
888 of width given in the proto_tree_add_item()
889 call) followed immediately by that number of
890 characters.
891 FT_ETHER A six octet string displayed in
892 Ethernet-address format.
893 FT_BYTES A string of bytes with arbitrary values;
894 used for raw binary data.
895 FT_UINT_BYTES A counted string of bytes, consisting
896 of a count (represented as an integral value,
897 of width given in the proto_tree_add_item()
898 call) followed immediately by that number of
899 arbitrary values; used for raw binary data.
900 FT_IPv4 A version 4 IP address (4 bytes) displayed
901 in dotted-quad IP address format (4
902 decimal numbers separated by dots).
903 FT_IPv6 A version 6 IP address (16 bytes) displayed
904 in standard IPv6 address format.
905 FT_IPXNET An IPX address displayed in hex as a 6-byte
906 network number followed by a 6-byte station
907 address.
908 FT_GUID A Globally Unique Identifier
909 FT_OID An ASN.1 Object Identifier
910 FT_REL_OID An ASN.1 Relative Object Identifier
911 FT_EUI64 A EUI-64 Address
912 FT_AX25 A AX-25 Address
913 FT_VINES A Vines Address
914 FT_SYSTEM_ID An OSI System-ID
915 FT_FCWWN A Fibre Channel WWN Address