Wireshark-dev: Re: [Wireshark-dev] How to dissect bit information

From: "Anders Broman \(AL/EAB\)" <anders.broman@xxxxxxxxxxxx>
Date: Mon, 18 Dec 2006 17:32:59 +0100
Hi,
In addittion look at the funktion dissect_gsm_map_ISDN_AddressString() ip packet-gsm_map.c
and
 item = get_ber_last_created_item();
 subtree = proto_item_add_subtree(item, ett_gsm_map_isdn_address_string);
 
 proto_tree_add_item(subtree, hf_gsm_map_extension, parameter_tvb, 0,1,FALSE);
 proto_tree_add_item(subtree, hf_gsm_map_nature_of_number, parameter_tvb, 0,1,FALSE);
 proto_tree_add_item(subtree, hf_gsm_map_number_plan, parameter_tvb, 0,1,FALSE);
 
 digit_str = unpack_digits(parameter_tvb, 1);
 
 proto_tree_add_string(subtree, hf_gsm_map_isdn_address_digits, parameter_tvb, 1, -1, digit_str);
 
BR
Anders


From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Anders Broman (AL/EAB)
Sent: den 18 december 2006 16:54
To: Developer support list for Wireshark
Subject: SV: [Wireshark-dev] How to dissect bit information

Hi,
The value used to mach the value string value is the "masked out" value.
 
So if the value is 0xc0f0 and the mask is 0xc00 the value used to match the string would be 3.
BR
Anders


Från: wireshark-dev-bounces@xxxxxxxxxxxxx genom taraniteja.vishwanatha@xxxxxxxxx
Skickat: må 2006-12-18 08:09
Till: [email protected]; [email protected]; wireshark-dev@xxxxxxxxxxxxx
Ämne: [Wireshark-dev] How to dissect bit information

Hi Anders/ Steve ,

 

This is with regards to the mail posted by vikash “How to dissect bit information”.

As you have suggested we can get the desired bit/bits by masking the remaining bits.But the problem we are facing

is there is a set of values assosiated with each bit / bits.In Wireshark, the “value_string” can take values pertaining to the whole octet

and therefore we are not able to understand how to capture the values assosiated with bit/bits.

I would really appreciate your help in this matter

 

//Tarani


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com