For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
[obnox/wireshark/wip.git] / epan / dissectors / packet-bacnet.c
index 545233c52a696f13df1369f6aa8bfb18dfe931fc..3ca710f537931854a52253e61a7d21d45a5c70ae 100644 (file)
@@ -201,7 +201,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        i = 0;
 
        /* I don't know the length of the NPDU yet; Setting the length after dissection */
-       ti = proto_tree_add_item(tree, proto_bacnet, tvb, 0, -1, FALSE);
+       ti = proto_tree_add_item(tree, proto_bacnet, tvb, 0, -1, ENC_NA);
 
        bacnet_tree = proto_item_add_subtree(ti, ett_bacnet);
 
@@ -251,7 +251,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        /* Ethernet MAC */
                        proto_tree_add_item(bacnet_tree,
                                hf_bacnet_dadr_eth, tvb, offset,
-                               bacnet_dlen, FALSE);
+                               bacnet_dlen, ENC_NA);
                        offset += bacnet_dlen;
                } else if (bacnet_dlen==1) {
                        proto_tree_add_uint(bacnet_tree, hf_bacnet_dlen,
@@ -298,7 +298,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        /* Ethernet MAC */
                        proto_tree_add_item(bacnet_tree,
                                hf_bacnet_sadr_eth, tvb, offset,
-                               bacnet_slen, FALSE);
+                               bacnet_slen, ENC_NA);
                        offset += bacnet_slen;
                } else if (bacnet_slen==1) {
                        /* SLEN */