When I call the "mac-lte" dissector I get this message:

"Can't dissect LTE MAC frame because no per-frame info was attached!"

 

I don't know what info do I need to add to the "pinfo" so it would work.

If you can help me in this point I will be very grateful.

 

I tried to send to the "mac-lte" dissector the buffer that contains only
the MAC data (including the headers of course and all that comes with it
(RLC, PDCP and finally IP data).

 

Any help will be great.

 

Yosi

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Martin
Mathieson
Sent: Wednesday, January 26, 2011 12:44 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] wireshark crashes after adding preference
codeto my

 

I can't see anything immediately wrong with this.  I assume your prefs
variables (global_dan_lte_sdk_dissect_MAC and
global_dan_lte_sdk_dissect_RLC) are gbooleans with file scope?

I'm wondering why the existing LTE MAC dissector isn't suitable, or
can't be made to work with your frames?

Regards,
Martin

On Wed, Jan 26, 2011 at 10:07 AM, Yosi Saggi
<[email protected]> wrote:

Hi

I wanted to add some options in the preference window for my dissector.
This is the code I have added to the "proto_register" function:

 

module_t *dan_lte_sdk_module;

 

proto_dan_lte_sdk = proto_register_protocol ("DAN LTE SDK Protocol",
"Dan LTE SDK", "dan_lte_sdk");

 

register_init_routine(dan_defragment_init);

 

proto_register_field_array (proto_dan_lte_sdk, hf, array_length (hf));

proto_register_subtree_array (ett, array_length (ett));

register_dissector("dan_lte_sdk", dissect_dan_lte_sdk,
proto_dan_lte_sdk);

 

dan_lte_sdk_module = prefs_register_protocol(proto_dan_lte_sdk, NULL);

 

prefs_register_bool_preference(dan_lte_sdk_module,
"Dissect_MAC_Payload",

                               "Dissect MAC Layer from Data Payload",

                               "In Uplink and Downlink data packets,
dissect MAC heaser layer "

                               "Disabling MAC dissection will disable
RLC dissection automaticly",

                               &global_dan_lte_sdk_dissect_MAC);

 

prefs_register_bool_preference(dan_lte_sdk_module,
"Dissect_RLC_Payload",

                               "Dissect RLC Layer from Data Payload",

                               "In Uplink and Downlink data packets,
dissect RLC heaser layer ",

                               &global_dan_lte_sdk_dissect_RLC);

 

It works fine until I add those two (even one of them)
"prefs_register_bool_preference" functions. What did I do wrong?

I get a "Runtime Error!" for wireshark.exe Removing those function fixes
it back.

 

Thanks

      Yosi


________________________________________________________________________
___
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 
mailto:[email protected]?subject=unsubscribe

 

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to