1 | initial version |
I don't know how to do #1, "Pass PayloadLength to the lower level dissector", but to do #2, I think you can just generate a TvbRange
from the original Tvb
, and then make a new Tvb
from the TvbRange
, like so:
xran_dissector_table:try(ecpriMessage, buffer:range(8, PayloadLength):tvb(),pinfo,tree)
Refs: