diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-04 22:44:31 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-04 22:44:31 +0000 |
commit | 94f36ca4ff177617fcc4e4ca8a171e374f8aeff6 (patch) | |
tree | 060bfcfb238455d21752efec8612998f2ab1db6f /epan/dissectors/packet-dhcp-failover.c | |
parent | 039fc59cb110aa485e910583d1edd5ff81ca2168 (diff) |
Use ENC_NA as encoding for proto_tree_add_item() calls which directly reference an hf item (in hf[] with types:
FT_NONE
FT_BYTES
FT_IPV6
FT_IPXNET
FT_OID
Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN
svn path=/trunk/; revision=39260
Diffstat (limited to 'epan/dissectors/packet-dhcp-failover.c')
-rw-r--r-- | epan/dissectors/packet-dhcp-failover.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dhcp-failover.c b/epan/dissectors/packet-dhcp-failover.c index fe77e8e25a..c4fdb31821 100644 --- a/epan/dissectors/packet-dhcp-failover.c +++ b/epan/dissectors/packet-dhcp-failover.c @@ -462,7 +462,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* if there are any additional header bytes */ if (poffset != offset) { proto_tree_add_item(dhcpfo_tree, hf_dhcpfo_additional_HB, tvb, - offset, poffset-offset, ENC_BIG_ENDIAN); + offset, poffset-offset, ENC_NA); offset = poffset; } @@ -471,7 +471,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) return; /* no payload */ /* create display subtree for the payload */ pi = proto_tree_add_item(dhcpfo_tree, hf_dhcpfo_payload_data, - tvb, poffset, length-poffset, ENC_BIG_ENDIAN); + tvb, poffset, length-poffset, ENC_NA); payload_tree = proto_item_add_subtree(pi, ett_fo_payload); while (offset < length) { opcode = tvb_get_ntohs(tvb, offset); @@ -479,7 +479,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) oi = proto_tree_add_item(payload_tree, hf_dhcpfo_dhcp_style_option, tvb, offset, - option_length+4, ENC_BIG_ENDIAN); + option_length+4, ENC_NA); option_tree = proto_item_add_subtree(oi, ett_fo_option); /*** DHCP-Style-Options ****/ @@ -818,7 +818,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case DHCP_FO_PD_VENDOR_OPTION: proto_tree_add_item(option_tree, hf_dhcpfo_vendor_option, tvb, offset, - option_length, ENC_BIG_ENDIAN); + option_length, ENC_NA); break; case DHCP_FO_PD_MAX_UNACKED_BNDUPD: @@ -857,7 +857,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case DHCP_FO_PD_HASH_BUCKET_ASSIGNMENT: proto_tree_add_item(option_tree, hf_dhcpfo_hash_bucket_assignment, tvb, - offset, option_length, ENC_BIG_ENDIAN); + offset, option_length, ENC_NA); break; case DHCP_FO_PD_MESSAGE_DIGEST: |