1 | initial version |
get_foo_message_len()
should return the length of the PDU in bytes.
The example assumes that the two bytes at offset 4 in the tvb contain the length of the PDU as 16 bit value in network byte order.
As you give no other info about your protocol and there doesn't seem to be a length byte in it, you could possibly: