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

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


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.

permanent link

answered 24 Aug '13, 11:58

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×166
×122
×76
×8

question asked: 23 Aug '13, 06:47

question was seen: 2,248 times

last updated: 24 Aug '13, 11:58

p​o​w​e​r​e​d by O​S​Q​A