Lua + LuaSocket problem (Win64)


Hi there,

I am running Wireshark 1.8.5 (with Lua 5.1) on Windows 7 Home Premium (x64). I also have Lua For Windows 5.1.4.

I’ve set up a simple tap with Lua, which works fine, but I’d like to be able to report certain statistics to a URL through LuaSocket.

LUA_PATH & LUA_CPATH are correctly set to expose /lua/socket.lua and /clibs/socket/core.dll to require(), but when I call require(“socket.http”), I get:

[quote]tshark: Lua: Error during loading:
error loading module ‘socket.core’ from file ‘C:\Program Files (x86)\Lua\5.1\cl
%1 is not a valid Win32 application.[/quote]

Note that the same require call works fine if I run it through lua.exe (not Wireshark’s interpreter).

Has anyone found a way to do this?



Oookay, I was just being retarded and trying to do this with the 64-bit version of Wireshark. Solved!