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

Ethereal-dev: Re: [Ethereal-dev] [PATCH] minor fix for the 802.11 dissector

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 8 Jul 2004 21:55:00 -0700
On Thu, Jul 08, 2004 at 01:32:00PM -0400, solomon@xxxxxxxxxxxxxx wrote:
> The attached patch fixes the decoding of the Association ID in 
> management frames as per section 7.3.1.8 in the IEEE802.11-1999 spec.

Checked in...

>      case FIELD_ASSOC_ID:
> -      proto_tree_add_item (tree, ff_assoc_id, tvb, offset, 2, TRUE);
> +      proto_tree_add_uint(tree, ff_assoc_id, tvb, offset, 2, 
> +			  COOK_ASSOC_ID(tvb_get_letohs(tvb,offset)));
> +      // proto_tree_add_item (tree, ff_assoc_id, tvb, offset, 2, TRUE);

...with the C++/C99 comment replaced with a C89 comment, as per the
"Portability" section of "doc/README.developer".

Attachment: pgptoQsDm8SJP.pgp
Description: PGP signature