Wireshark-bugs: [Wireshark-bugs] [Bug 7313] Correct ERF name, add WTAP_ENCAP string display
Date: Fri, 1 Jun 2012 04:54:53 -0700 (PDT)

--- Comment #5 from Jakub Zawadzki <[email protected]> 2012-06-01 04:54:53 PDT ---
Created attachment 8528
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=8528
Build value_string for wiretap encaps, and use it in frame.encap_type

(In reply to comment #4)
> (In reply to comment #3)
> > But wouldn't be better to build value_string array for all encaps, and use it
> > in hf_frame_wtap_encap?
> The 'hf_register_info' will only work with a static value_string array,
> correct? I'm not sure how/if they can be used with dissector tables. When would
> you build the value_string?

Well not really, attaching sample patch.
But I'm not sure if it's right way, maybe we could move value_string API to
wsutil, and use it also in wiretap?

Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.