aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-25 09:17:12 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-25 09:17:12 +0000
commit477eef9312cf7d7740466102875600d72ab537f9 (patch)
tree7c12f78dbaad1455211810b4be155a2dc4d2ba17
parentdb97602184b2dbd2c84543422f22b9e34e9b033f (diff)
What part of "least significant octet first" do you not understand? :-)
(The part I didn't bother to notice.... :-)) svn path=/trunk/; revision=12098
-rw-r--r--epan/dissectors/packet-loop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-loop.c b/epan/dissectors/packet-loop.c
index 0d3ee44ae4..899cc70ee4 100644
--- a/epan/dissectors/packet-loop.c
+++ b/epan/dissectors/packet-loop.c
@@ -75,9 +75,9 @@ dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
for (;;) {
if (tree)
- proto_tree_add_item(loop_tree, hf_loop_skipcount, tvb, offset, 2, FALSE);
+ proto_tree_add_item(loop_tree, hf_loop_skipcount, tvb, offset, 2, TRUE);
offset += 2;
- function = tvb_get_ntohs(tvb, 2);
+ function = tvb_get_letohs(tvb, 2);
if (!set_info) {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_str(pinfo->cinfo, COL_INFO,
@@ -93,7 +93,7 @@ dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case FUNC_REPLY:
if (tree)
proto_tree_add_item(loop_tree, hf_loop_receipt_number, tvb, offset, 2,
- FALSE);
+ TRUE);
offset += 2;
next_tvb = tvb_new_subset(tvb, offset, -1, -1);
call_dissector(data_handle, next_tvb, pinfo, tree);