diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-02 15:45:54 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-02 15:45:54 +0000 |
commit | 55cc2f5adc7f7fa9b2f235df125f969deb59fac2 (patch) | |
tree | 9a51f914af31af68fddc77c2403e6d28b58d0f5d /asn1/cdt/packet-cdt-template.c | |
parent | 9be273b75b4618b6287172b602694150482b0de3 (diff) | |
download | wireshark-55cc2f5adc7f7fa9b2f235df125f969deb59fac2.tar.gz wireshark-55cc2f5adc7f7fa9b2f235df125f969deb59fac2.tar.bz2 wireshark-55cc2f5adc7f7fa9b2f235df125f969deb59fac2.zip |
Decode content according to given content type.
svn path=/trunk/; revision=26338
Diffstat (limited to 'asn1/cdt/packet-cdt-template.c')
-rw-r--r-- | asn1/cdt/packet-cdt-template.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/asn1/cdt/packet-cdt-template.c b/asn1/cdt/packet-cdt-template.c index 0edfeeccbd..7b08333715 100644 --- a/asn1/cdt/packet-cdt-template.c +++ b/asn1/cdt/packet-cdt-template.c @@ -41,6 +41,12 @@ #include "packet-cdt.h" +#define CDT_UNDEFINED 0 +#define CDT_EXTERNAL 1 +#define CDT_P1 2 +#define CDT_P3 3 +#define CDT_P7 4 + #define PNAME "Compressed Data Type" #define PSNAME "CDT" #define PFNAME "cdt" @@ -48,10 +54,14 @@ static proto_tree *top_tree = NULL; static proto_item *cdt_item = NULL; +static guint32 content_type = 0; + /* Initialize the protocol and registered fields */ int proto_cdt = -1; #include "packet-cdt-hf.c" +static dissector_handle_t data_handle = NULL; + /* Initialize the subtree pointers */ #include "packet-cdt-ett.c" @@ -108,4 +118,6 @@ void proto_register_cdt (void) { /*--- proto_reg_handoff_cdt ---------------------------------------*/ void proto_reg_handoff_cdt (void) { #include "packet-cdt-dis-tab.c" + + data_handle = find_dissector ("data"); } |