Wireshark-bugs: [Wireshark-bugs] [Bug 8506] VRT Protocol

Date: Thu, 21 Mar 2013 13:10:53 +0000

changed bug 8506

What Removed Added
Attachment #10415 Flags   review_for_checkin?

Comment # 2 on bug 8506 from
Comment on attachment 10415 [details]
The patch itself.

About
+    if(en_bits) {
+        enable_tree = proto_item_add_subtree(enable_item, ett_ind_enables);
+        ind_tree = proto_item_add_subtree(ind_item, ett_indicators);
+        for(i = 11; i>=0; i--) {
+            if(en_bits & (1<<i)) {
+                proto_tree_add_item(enable_tree, *enable_hfs[i], tvb,
offset+(i<3), 1, ENC_NA);
+                proto_tree_add_item(ind_tree, *ind_hfs[i], tvb,
offset+(i<8)+1, 1, ENC_NA);
+            }
+        }
+    }

Why don't use proto_tree_add_bits_item ?


You are receiving this mail because:
  • You are watching all bug changes.