Hi, I started to make a lua port of the PTP/IP dissector split into the PTP/IP part and an dependent an PTP part. The idea is the PTP/IP dissector parses the IP specific structure parts (length, packet type) and then passes these to an PTP packet dissector. However, in the PTP dissector I can not declare the 'imported' fields of the PTP/IP dissector: top level
results in an error message bad argument #1 to 'new' (Field new: a field with this name must exist). When I move it to asked 08 Mar '16, 04:43 Thomas E |
One Answer:
Maybe this is due to the order which Wireshark finds & executes your .lua files. Try creating a new script that initializes your dissectors in correct order. Renaming your files in alphabetical order could also work .. if sorting order of read .lua files is the issue. answered 27 Apr '16, 14:56 kim |
It worked. The 'parent' dissector needs to load before the child dissectors. An implementation is at https://github.com/tengelmeier/mtp-tools/