Wireshark mailing list archives
Just what sort of Lua object to pass to DissectorTable.add?
From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Fri, 12 Oct 2018 06:53:42 -0700
Hi folks, The following Lua code is failing: ent_table = DissectorTable.get("ethertype") ent_table.add(35132, some_proto) It gets the following error: bad argument #1 to 'add' (userdata expected, got number) That is occurring for the add. How do I fix this? What sort of userdata is expected here? -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者) ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Just what sort of Lua object to pass to DissectorTable.add? Richard Sharpe (Oct 12)
- Re: Just what sort of Lua object to pass to DissectorTable.add? Richard Sharpe (Oct 12)