aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-cpha.c')
-rw-r--r--epan/dissectors/packet-cpha.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cpha.c b/epan/dissectors/packet-cpha.c
index 1b99d35e21..8dc2f22db6 100644
--- a/epan/dissectors/packet-cpha.c
+++ b/epan/dissectors/packet-cpha.c
@@ -225,12 +225,11 @@ dissect_cpha(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hdr.filler = g_ntohs(hdr.filler);
opcode = g_ntohs(hdr.opcode);
- if (check_col(pinfo->cinfo, COL_INFO))
- col_add_fstr(pinfo->cinfo, COL_INFO, "CPHAv%d: %s",
- hdr.ha_protocol_ver, opcode2str_short(opcode));
+ col_add_fstr(pinfo->cinfo, COL_INFO, "CPHAv%d: %s",
+ hdr.ha_protocol_ver, opcode2str_short(opcode));
if (tree) {
- ti = proto_tree_add_item(tree, proto_cphap, tvb, offset, -1, FALSE);
+ ti = proto_tree_add_item(tree, proto_cphap, tvb, offset, -1, ENC_BIG_ENDIAN);
cpha_tree = proto_item_add_subtree(ti, ett_cphap);
}
if (tree) {