aboutsummaryrefslogtreecommitdiffstats
path: root/epan/charsets.h
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-12-10 22:08:07 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-12-10 22:08:07 +0000
commit20c7414c71174df33ede6e89cd98e99b662e2174 (patch)
treeb793316e144123a5e1f615e77e12cb84c560ad4c /epan/charsets.h
parent67912bf79899fd4accc3ff16ebb902a5a35aaf45 (diff)
use large positve values for illegal DVB-SI string encodings
interpret encoding fields as UINT32 so that the displayed value matches the actual bytes in the packet svn path=/trunk/; revision=53927
Diffstat (limited to 'epan/charsets.h')
-rw-r--r--epan/charsets.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/charsets.h b/epan/charsets.h
index a4bc4ced40..71caa967b9 100644
--- a/epan/charsets.h
+++ b/epan/charsets.h
@@ -34,10 +34,6 @@ extern "C" {
#endif /* __cplusplus */
typedef enum {
- DVB_ENCODING_INVALID = -3, /* length invalid */
- DVB_ENCODING_RESERVED = -2, /* reserved by spec */
-
- DVB_ENCODING_UNKNOWN = -1, /* not defined by spec */
DVB_ENCODING_LATIN = 0,
DVB_ENCODING_ISO_8859_5,
@@ -70,6 +66,10 @@ typedef enum {
DVB_ENCODING_EXT_ISO_8859_13 = DVB_ENCODING_EXT_BASE | 13,
DVB_ENCODING_EXT_ISO_8859_14 = DVB_ENCODING_EXT_BASE | 14,
DVB_ENCODING_EXT_ISO_8859_15 = DVB_ENCODING_EXT_BASE | 15,
+
+ DVB_ENCODING_INVALID = G_MAXUINT32-3, /* length invalid */
+ DVB_ENCODING_RESERVED = G_MAXUINT32-2, /* reserved by spec */
+ DVB_ENCODING_UNKNOWN = G_MAXUINT32-1, /* not defined by spec */
} dvb_encoding_e;
extern const value_string dvb_string_encoding_vals[];