Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] Finding init.lua after build from source

Date Prev · Date Next · Thread Prev · Thread Next
From: Christopher Merck <cmerck@xxxxxxxxxxxx>
Date: Mon, 1 Apr 2013 13:33:46 +0000

Hi Tony,

 

 Thanks, with your help I generated an init.lua file.

 

 I also added dofile('plugins/mydissector.lua') to the end, to run my dissector. However, now I'm not sure that it is getting loaded.

 

 I placed it in the build directory, and then I run WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./wireshark, but my dissector doesn't seem to be loaded. I also try inserting blatant syntax errors into init.lua but no error is generated.

 

 I have also tried installing and placing init.lua in the "global config dir" (which for me is apparently /usr/local/share/wireshark/), but same (lack of) result.

 

 If you could be so kind as to give me another pointer that would be great.

 

Thanks,

 Chris

 

From: wireshark-users-bounces@xxxxxxxxxxxxx [mailto:wireshark-users-bounces@xxxxxxxxxxxxx] On Behalf Of Tony Trinh
Sent: Saturday 30 March 2013 22:25
To: Community support list for Wireshark
Subject: Re: [Wireshark-users] Finding init.lua after build from source

 

The script takes two parameters:

 

  make-init-lua.pl $SRC $TEMPLATE

 

where:

  $SRC is the root of the wireshark source directory, and

  $TEMPLATE is the path to template-init.lua (in the same directory as make-init-lua.pl).

 

The result is printed to stdout, so you could redirect it to a file.

 

  ~/src/wireshark/epan/wslua

  $ ./make-init-lua.pl ../.. template-init.lua > init.lua

 



This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited.