|
I have a global variable in a |
|
What is it you're trying to do? If the global variable is a parameter setting for your dissector, try just registering it as a preference for the dissector; that way you don't need to write any GUI code for it - the existing Wireshark GUI code will let you set it from the Edit->Preferences dialog (and you can set it with the If you're trying to write a tool to report statistics for your protocol, the tap mechanism could be used; you wouldn't need a global variable to pass data to a tap. |
|
I'm not sure what you aim to accomplish sharing something between a dissector and the The In brief, place the following in each of these files:
*It could also be a Thanks for the reply. But I did as u said but still getting undefined reference to `variable_name' Also its a hash table so I cant add it as a preference. Does it have something related to the Makefile, I mean do I need to give some path so that it looks for it while linking.
(15 Apr '12, 23:37)
vish
|
