This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to parse UAT once instead of parsing it with every dissection process?

0

My dissector has a (User Accsess Table) UAT related to it. I found that it is parsed every time wireshark dissects a relevant packet. I only want the UAT parsed once not every time wiresharks dissect a packet by using my dissector. Can I control this? if yes, how can I do so? Note: My parsing function currently is defined in packet-foo.c and is called in dissect_foo().

Thanks flora

asked 09 Mar '15, 12:50

flora's gravatar image

flora
156313338
accept rate: 100%

edited 10 Mar '15, 08:40


2 Answers:

0

By placing the call to the parsing function in proto_reg_handoff_foo() instead of dissect_foo().

answered 10 Mar '15, 11:06

flora's gravatar image

flora
156313338
accept rate: 100%

0

How about placing uat_new() and prefs_register_uat_preference() in proto_register() ?

answered 10 Mar '15, 09:21

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Is this a different function from proto_register_foo()? I already have uat_new() and prefs_register_uat_preference() in proto_register_foo()

(10 Mar '15, 09:52) flora

thanks Jaap. I've just resolved the issue.

(10 Mar '15, 11:07) flora