aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ans.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-09-26 05:52:58 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-09-26 05:52:58 +0000
commitfc63c358435bc4bf771a0c15943a1aee890a2787 (patch)
tree8a9fc1879cbb0c4b9c4823078293dc5e8959b883 /epan/dissectors/packet-ans.c
parent69bfd68ac490f8d831614f4f1643265ef27a9bb4 (diff)
Get rid of check_col() and use ENC_BIG_ENDIAN.
svn path=/trunk/; revision=39144
Diffstat (limited to 'epan/dissectors/packet-ans.c')
-rw-r--r--epan/dissectors/packet-ans.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/epan/dissectors/packet-ans.c b/epan/dissectors/packet-ans.c
index 44a34c3019..ded5187531 100644
--- a/epan/dissectors/packet-ans.c
+++ b/epan/dissectors/packet-ans.c
@@ -76,24 +76,22 @@ dissect_ans(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_PROTOCOL, "Intel ANS probe");
- if (check_col(pinfo->cinfo, COL_INFO)) {
- seq_num = tvb_get_ntohl(tvb, 4);
- sender_id = tvb_get_ntohs(tvb, 8);
- tvb_memcpy(tvb, team_id, 10, 6);
+ seq_num = tvb_get_ntohl(tvb, 4);
+ sender_id = tvb_get_ntohs(tvb, 8);
+ tvb_memcpy(tvb, team_id, 10, 6);
- col_add_fstr(pinfo->cinfo, COL_INFO, "Sequence: %u, Sender ID %u, Team ID %s",
- seq_num, sender_id, ether_to_str(team_id));
- }
+ col_add_fstr(pinfo->cinfo, COL_INFO, "Sequence: %u, Sender ID %u, Team ID %s",
+ seq_num, sender_id, ether_to_str(team_id));
if (tree) {
- ti = proto_tree_add_item(tree, proto_ans, tvb, 0, -1, FALSE);
+ ti = proto_tree_add_item(tree, proto_ans, tvb, 0, -1, ENC_BIG_ENDIAN);
ans_tree = proto_item_add_subtree(ti, ett_ans);
- proto_tree_add_item(ans_tree, hf_ans_app_id, tvb, 0, 2, FALSE);
- proto_tree_add_item(ans_tree, hf_ans_rev_id, tvb, 2, 2, FALSE);
- proto_tree_add_item(ans_tree, hf_ans_seq_num, tvb, 4, 4, FALSE);
- proto_tree_add_item(ans_tree, hf_ans_sender_id, tvb, 8, 2, FALSE);
- proto_tree_add_item(ans_tree, hf_ans_team_id, tvb, 10, 6, FALSE);
+ proto_tree_add_item(ans_tree, hf_ans_app_id, tvb, 0, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(ans_tree, hf_ans_rev_id, tvb, 2, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(ans_tree, hf_ans_seq_num, tvb, 4, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(ans_tree, hf_ans_sender_id, tvb, 8, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(ans_tree, hf_ans_team_id, tvb, 10, 6, ENC_BIG_ENDIAN);
}
}