Quantcast
Channel: Ask Wireshark - RSS feed
Browsing latest articles
Browse All 6 View Live

Comment by Cilyan for This might be a limitation in Lua.In C, you can use the...

Thanks for the quick reply. Indeed. I created a subdissector that would accept an additional parameter, but I get `nil` on it. Any chance to get an improvement or use another method? I can't consider...

View Article



Comment by grahamb for This might be a limitation in Lua.In C, you can use...

Ideally the Lua API would be updated to match the C one, patches gratefully accepted. I'm not aware of anything else that can be done, but that doesn't mean there isn't a solution, I'm a Lua novice.

View Article

Answer by grahamb for I'm developing a custom Lua dissector that uses a...

This might be a limitation in Lua. In C, you can use the data parameter of a dissector, to pass a pointer to your own data structure. Obviously both caller and calle must know how the data is...

View Article

Comment by Cilyan for Actually the correct way to detect how/why a...

Thanks a lot. This works actually wonderful. Though according to the official example I used the table to get the dissector and then call it, of course this wouldn't work. One needs to call...

View Article

Answer by JeffMorriss for I'm developing a custom Lua dissector that uses a...

Actually the correct way to detect how/why a subdissector is being called is to use the `pinfo->match_uint` or `match_string` fields. These will tell you, to quote the comment in `packet_info.h`,...

View Article


Get index of DissectorTable from a subdissector

I'm developing a custom Lua dissector that uses a custom DissectorTable against a payload type information contained in the header to dissect the payload data. It appears however that payload types can...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images