Skip to content

wslua_dissector: Support 'decode_as' from DissectorTable:try()

Harald Welte requested to merge laf0rge/wireshark:laforge/wslua_decode_as into master

When I'm registering a dissector for 'decode as' from a lua dissector using DissectorTable.new(), the code requires me to use ftypes.NONE if it ia a pure "decode as" dissector, where there's no port number / payload id / protocol id to match on.

However, without this patch, calling dissector_table:try() will fail for such a dissector table, as the code in DissectorTable_try does not handle FT_NONE and will raise "No such type of dissector table".

With the attached patch I'm able to get that working.

Merge request reports