For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
[obnox/wireshark/wip.git] / asn1 / goose / packet-goose-template.c
index 1d218e3e757e1065d1f2f6681a5d625f7156124a..80cd0a478b792cfbc41ab15fb65c5836000ca321 100644 (file)
@@ -72,7 +72,7 @@ dissect_goose(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
        if (parent_tree){
-               item = proto_tree_add_item(parent_tree, proto_goose, tvb, 0, -1, FALSE);
+               item = proto_tree_add_item(parent_tree, proto_goose, tvb, 0, -1, ENC_NA);
                tree = proto_item_add_subtree(item, ett_goose);
        }
        col_set_str(pinfo->cinfo, COL_PROTOCOL, PNAME);
@@ -153,6 +153,6 @@ void proto_reg_handoff_goose(void) {
 
        dissector_handle_t goose_handle;
        goose_handle = find_dissector("goose");
-       
+
        dissector_add_uint("ethertype", ETHERTYPE_IEC61850_GOOSE, goose_handle);
 }