Hello, I have added new columns along with default columns like Source,Destination,protocol etc in the epan/prefs.c init_prefs() function but they are not at all being reflected at the runtime. asked 05 Sep '11, 23:44 Terrestrial ... edited 06 Sep '11, 16:18 helloworld |
2 Answers:
I would strongly suggest that you do this with a global preferences file. The global preferences file is a file named On Windows, the "global data directory" is the installation directory that contains the Wireshark executable. On UN*X:
If you insist on doing it with code changes, note that No matter whether you do it with a global preferences file or a code change, whatever you do will be overridden by the columns in the user preferences file, so you'd have to remove your preferences file or edit it with a text editor so that it doesn't set the columns (remove the answered 02 Dec '11, 11:04 Guy Harris ♦♦ Thanks a lot!! Great. Its working well now. (04 Dec '11, 23:55) Terrestrial ... |
The hardcoded preferences are only used when Wireshark does not find a preferences file. So in order for your changes to take effect, you will need to remove your old preferences file before starting up your version of Wireshark. If you want to have the same preferences on different systems, you can also distribute your preferences between the systems. Personally I have made my wireshark profiles directory a link to a directory in my dropbox account so I have all profiles available on all my systems. answered 07 Sep '11, 00:15 SYN-bit ♦♦ where do we find the old preferences file on windows machine? (07 Sep '11, 04:12) Terrestrial ... When you open Wireshark and go to "Help -> About Wireshark" you can click on the "Folders" tab and it will show you where the personal and system-wide settings are stored. Delete all the files in these directories before starting up your version of Wireshark. (07 Sep '11, 07:26) SYN-bit ♦♦ I hardcoded custom columns and it is running properly in Windows machine but when it comes to ubuntu it is resulting in "Segmentation Fault" error whenever I click on CANCEL of Preferences Dialog box. My code is:
....
...
... } & crashes WS (01 Dec '11, 23:33) Terrestrial ... |
Why are you trying to do this? Can't you just add a custom column?
@Prashanth, To be clear, @cmaynard is referring to the GUI Preferences (not code).
From your recent posts, it seems like you're trying to hard-code things that are normally read from the
preferences
file.I guess you are trying to get those preferences even after packaging .... I'm not sure which file would reflect those changes ....
@flashkicker Yes you are right. What i want ultimately is just to have an installer with the defaults set by me so that whenever i use wireshark i may need no changes for settings.