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

How to export a global data structure defined in epan/dissectors/packet-radius to make it accessible in ui/gtk?

0

I have defined a global data structure inside epan/dissector/packet-radius, which I am using to store some radius state handling information. I would like to display the information stored in this data structure inside the Statistics->Summary dialogue window.

I am not sure how to export the data structure defined in epan/dissector/packet-radius.c to make it available to ui/gtk/summary_dlg.c

I did this long back in Wireshark-1.0.1 using the following steps:

  1. Add following to epan/dissector/packet-radius.h

    WS_VAR_IMPORT struct radius_call_state* radius_stathead;

  2. Export stathead in epan/libwireshark.def

    radius_stathead DATA

But, it seems that "WS_VAR_IMPORT" and "epan/libwireshark.def" are not being used in the latest Wireshark version (1.10.1).

Any help on this is appreciated.

asked 23 Aug '13, 06:47

kkg78's gravatar image

kkg78
11113
accept rate: 0%

edited 23 Aug '13, 06:57


One Answer:

0

I'd suggest doing this with a tap, instead, rather than by exporting a global data structure.

I would like to display the information stored in this data structure inside the Statistics->Summary dialogue window.

I'd make all protocol-specific statistics taps rather than putting them into the summary dialog.

answered 24 Aug '13, 11:58

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%