ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] patch for 802.11 dissector

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

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Fri, 19 Sep 2003 19:17:42 +0900 (JST)
Please find attached a patch to make vendor specific tag to be
displayed in more consistent way with other tagged parameters.

Regards,

Index: packet-ieee80211.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ieee80211.c,v
retrieving revision 1.97
diff -u -r1.97 packet-ieee80211.c
--- packet-ieee80211.c	15 Sep 2003 18:40:52 -0000	1.97
+++ packet-ieee80211.c	19 Sep 2003 09:38:42 -0000
@@ -724,7 +724,9 @@
       tag_len = tvb_get_guint8(tvb, offset + 1);
       tag_val = tvb_get_ptr(tvb, offset + 2, tag_len);
   
-      proto_tree_add_uint(tree, tag_number, tvb, offset, 1, tag_no);
+      proto_tree_add_uint_format (tree, tag_number, tvb, offset, 1, tag_no,
+				  "Tag Number: %u (Vendor Specific)",
+				  tag_no);
       offset += 1;
       
       proto_tree_add_uint(tree, tag_length, tvb, offset, 1, tag_len);