title: How to port a Wireshark Lua dissector Script to Mac OSX?
body: <p>Is there any initial setup that needs to be configured for wireshark to correctly handle a lua script in a Mac OSX environment?</p>
  
  <p>Attempted to port the Lua answer to question "How to find out the HTTP header length of a packet?" <a href="https://stackoverflow.com/a/5794357/1217670">https://stackoverflow.com/a/5794357/1217670</a></p>
  
  <p>Was unable  to get the Solution to work on a Mac.</p>
  
  <p>The solution did work fine on a Windows XP platform with Wireshark 1.6.7, Lua 5.1. </p>
  
  <p>Running the http_extra.lua script on a Mac OSX 10.7.3 with Wireshark 1.6.5, Lua 5.1. 
  the [Header Length (bytes): 917]  header field does not appear.<br>
  I did enter http.hdr_len in the custom HTTP headers field.  </p>
  
  <p>Filtering on http.hdr_len displays nothing.</p>
  
  <p>The http_extra.lua script is placed in the 
  /Applications/Wireshark.app/Contents/Resources/lib/wireshark/plugins directory.<br>
  Same results if you move the script to the Personal Plugins Folder.</p>
  
  <p>This is the exact script file which is working perfectly on the Windows XP system.</p>
  
  <p>The About Wireshark Plugins tab lists the http_extra.lua as a type lua script.  </p>
  
  <p>Testing the script to create an error validates that wireshark is aware of the script.</p>
  
  <p>I did see a note you need to set LUA_PATH to the global plugins directory. This had no effect.</p>
  
  <p>Appreciate any suggestions.</p>