Wireshark-bugs: [Wireshark-bugs] [Bug 6904] Extensions to wireshark to support MPLS-TP Lock-Inst
Date: Thu, 15 Mar 2012 23:34:04 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6904

--- Comment #6 from Anders Broman <anders.broman@xxxxxxxxxxxx> 2012-03-15 23:34:03 PDT ---
In Changes done to packet-mpls.c to support decoding of MPLS-TP Lock Instruct
messages
+    guint8  li_version = 0;  
+    guint16 reserved = 0;
+    guint8  refresh_timer = 0;
:
+    li_version = ((tvb_get_guint8 (tvb, offset) & 0xf0) >> 4);
+    reserved = tvb_get_ntohs (tvb, (offset + 1));
+    refresh_timer = tvb_get_guint8 (tvb, (offset + 3));
:+            proto_tree_add_uint (mplstp_tree, hf_li_version , tvb, offset,
+                                 1, li_version);
+            proto_tree_add_uint (mplstp_tree, hf_li_reserved, tvb, offset,
+                                 3, reserved);
+            proto_tree_add_uint (mplstp_tree, hf_li_refresh_timer, tvb,
(offset + 3),
+                                 1, refresh_timer);
could be replaced with proto_add_item()

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.