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

specify disabled_protos file on command line

1

How do I make tshark read a disabled_protos file (or any other config file) specified by name on the command line, rather than finding it in any of the stock locations? -C is the closest thing I've found to what I want, but that looks in ~/.wireshark/ for the profile directory, whereas I want to keep my custom configuration files with the project they belong to.

asked 05 May '13, 13:36

Zack's gravatar image

Zack
26337
accept rate: 0%

edited 05 May '13, 13:36


One Answer:

0

As there is no way to just point to a disabled_protocols file, you need to go the "-C" way. Here is one way of doing it:

Make a new profile for your project and then create a symbolic link to it in your projects directory:

ln -s ~/.wireshark/profiles/projextX_profile_1 ~/projects/projectX/wireshark/profile_1

Or if you want to keep the original files in your project directory, move the projectX_profile_1 directory to your projects directory and link back to it from ~/.wireshark/profiles

mv ~/.wireshark/profiles/projextX_profile_1 ~/projects/projectX/wireshark/profile_1
ln -s ~/projects/projectX/wireshark/profile_1 ~/.wireshark/profiles/projextX_profile_1

(FYI: I have linked my ~/.wireshark/profiles directory to a directory on dropbox so I have all my wireshark profiles available on both my laptops)

answered 05 May '13, 13:49

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

edited 05 May '13, 13:51

That's not a bad workaround, but it still requires me to set things up outside the project directory before my scripts will work. I want to be able to check out the repo in a pristine environment and proceed without further setup.

(05 May '13, 13:52) Zack

The code for reading the profile name could be extended to also accept an absolute path. You could file an enhancement request for that on https://bugs.wireshark.org (or even better, provide the necessary patch so it can be submitted to the SVN repository)

(06 May '13, 00:37) SYN-bit ♦♦