I'm writing a Lua chained dissector on top of the standard HTTP dissector to extract information from the HTTP payload. However, when I chain my dissector with the original HTTP dissector, reassembly is failing. I stripped down the Lua dissector to the bare minimum but still have the issue. Here is the stripped down dissector:
Without the dissector, reassembly works fine:
But when the Lua dissector is used, reaassembly fails:
Am I doing something wrong? Is this a bug? Or is reassembly functionality somehow not implemented yet for chained Lua dissectors? asked 28 Nov ‘16, 15:02 SYN-bit ♦♦ |
One Answer:
So what you're doing is inserting another dissector between TCP and HTTP, right? The problem, I think, (having not tried anything) comes down to what's explained in this comment in
The important part is the Thus only the subdissector immediately on top of whoever offers this service can use it bit. (pinfo->can_desegment, which is set here, is checked by the You should (if the LUA API allows you) be able to solve this by incrementing answered 04 Dec '16, 07:47 JeffMorriss ♦ |
Thanks Jeff, that did the trick, here is the alteration for future reference: