Ethereal-dev: [Ethereal-dev] {Patch] small fix for packet-loop.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Bill Meier" <wmeier@xxxxxxxxxxx>
Date: Tue, 21 Mar 2006 01:03:12 -0500
Please see below for patch.

Also: I've uploaded a CTP capture 'from the wild' to the sample captures wiki 
page.

Thanks

Bill Meier



Ensure "relevant function" logic works for loopback packets containing 
multiple forwarding addresses. 


Index: epan/dissectors/packet-loop.c
===================================================================
--- epan/dissectors/packet-loop.c       (revision 17688)
+++ epan/dissectors/packet-loop.c       (working copy)
@@ -76,7 +76,7 @@

     proto_tree_add_item(loop_tree, hf_loop_skipcount, tvb, offset, 2, TRUE);
   }
-  skip_offset = 2 + tvb_get_ntohs(tvb, offset);
+  skip_offset = 2 + tvb_get_letohs(tvb, offset);
   offset += 2;

   do {