diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-05-12 10:31:41 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-05-12 10:31:41 +0000 |
commit | 96e9317c66dabe9b892e46178335b41dd2b2dec9 (patch) | |
tree | 6a61a2a7121e9c465dadf79afd0385a335f9b1c1 /epan/wslua/wslua.h | |
parent | 01070152662b1cc280ed6e096224869ffbe0b2ae (diff) |
From Tamas Regos:
WSLUA improvement.
The existing ProtoField.bool looks like the following:
ProtoField.bool(abbr, [name], [desc])
But checking any protocol dissector with bool protofield, it can be seen that
in C code we have more options than thru the WSLUA interface.
E.g.: {&hf_gtp_qos_sig_ind,{"Signalling Indication", "gtp.sig_ind", FT_BOOLEAN,
8, TFS(>p_sig_ind), GTP_EXT_QOS_SIG_IND_MASK, NULL, HFILL}},
So I've extended ProtoField.bool to have more options like this:
ProtoField.bool(abbr, [name], [bitfield], [true_false_string], [mask], [desc])
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4700
svn path=/trunk/; revision=32771
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 9d28d43214..629869b955 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -90,7 +90,7 @@ typedef struct _wslua_field_t { char* blob; enum ftenum type; base_display_e base; - value_string* vs; + const void* vs; guint32 mask; } wslua_field_t; @@ -118,8 +118,8 @@ typedef struct _wslua_pref_t { guint u; const gchar* s; gint e; - range_t *r; - void* p; + range_t *r; + void* p; } value; union { guint32 max_value; /* maximum value of a range */ |