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-iwarp-mpa.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-iwarp-mpa.c')
-rw-r--r-- | epan/dissectors/packet-iwarp-mpa.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-iwarp-mpa.c b/epan/dissectors/packet-iwarp-mpa.c index 62e4a81f8e..001ab7513e 100644 --- a/epan/dissectors/packet-iwarp-mpa.c +++ b/epan/dissectors/packet-iwarp-mpa.c @@ -486,20 +486,20 @@ dissect_mpa_req_rep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (message_type == MPA_REQUEST_FRAME) { mpa_header_item = proto_tree_add_item(mpa_tree, - hf_mpa_req, tvb, offset, -1, FALSE); + hf_mpa_req, tvb, offset, -1, ENC_NA); mpa_header_tree = proto_item_add_subtree( mpa_header_item, ett_mpa); proto_tree_add_item(mpa_header_tree, hf_mpa_key_req, - tvb, offset, MPA_REQ_REP_KEY_LEN, FALSE); + tvb, offset, MPA_REQ_REP_KEY_LEN, ENC_NA); } if (message_type == MPA_REPLY_FRAME) { mpa_header_item = proto_tree_add_item(mpa_tree, - hf_mpa_rep, tvb, offset, -1, FALSE); + hf_mpa_rep, tvb, offset, -1, ENC_NA); mpa_header_tree = proto_item_add_subtree( mpa_header_item, ett_mpa); proto_tree_add_item(mpa_header_tree, hf_mpa_key_rep, - tvb, offset, MPA_REQ_REP_KEY_LEN, FALSE); + tvb, offset, MPA_REQ_REP_KEY_LEN, ENC_NA); } offset += MPA_REQ_REP_KEY_LEN; @@ -536,7 +536,7 @@ dissect_mpa_req_rep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (pd_length) { proto_tree_add_item(mpa_header_tree, hf_mpa_private_data, tvb, offset, - pd_length, FALSE); + pd_length, ENC_NA); } } return TRUE; @@ -621,7 +621,7 @@ dissect_fpdu_markers(tvbuff_t *tvb, proto_tree *tree, mpa_state_t *state, guint32 offset, i; mpa_marker_item = proto_tree_add_item(tree, hf_mpa_marker, tvb, - 0, -1, FALSE); + 0, -1, ENC_NA); mpa_marker_tree = proto_item_add_subtree(mpa_marker_item, ett_mpa); offset = get_first_marker_offset(state, tcpinfo, endpoint); @@ -739,7 +739,7 @@ dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_tree = proto_item_add_subtree(mpa_item, ett_mpa); mpa_header_item = proto_tree_add_item(mpa_tree, hf_mpa_fpdu, - tvb, offset, -1, FALSE); + tvb, offset, -1, ENC_NA); mpa_header_tree = proto_item_add_subtree(mpa_header_item, ett_mpa); @@ -761,7 +761,7 @@ dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, tvb, pad_offset(tcpinfo, total_length, pad_length), - pad_length, FALSE); + pad_length, ENC_NA); } dissect_fpdu_crc(tvb, mpa_header_tree, state, @@ -776,7 +776,7 @@ dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (pad_length > 0) { proto_tree_add_item(mpa_header_tree, hf_mpa_pad, tvb, offset, - pad_length, FALSE); + pad_length, ENC_NA); offset += pad_length; } |