Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"Argument 6" is the pointer to the "get PDU length" routine.

The "get PDU length" routine MUST be a routine that is passed:

  • a packet_info * passed to the dissector that's calling tcp_dissect_pdu();
  • a tvbuff_t * pointing to the tvbuff containing the TCP data;
  • an int whose value is the offset in that tvbuff at which that PDU beings;
  • a void * that's the dissector data pointer passed to the dissector that's calling tcp_dissect_pdu();

and that returns the total length of the PDU, in bytes.

If that's not what your "get PDU length" routine does, you MUST change it to do so.

"Argument 6" is the pointer to the "get PDU length" routine.

The "get PDU length" routine MUST be a routine that is passed:

  • a packet_info * passed to the dissector that's calling tcp_dissect_pdu();
  • a tvbuff_t * pointing to the tvbuff containing the TCP data;
  • an int whose value is the offset in that tvbuff at which that PDU beings;begins;
  • a void * that's the dissector data pointer passed to the dissector that's calling tcp_dissect_pdu();

and that returns the total length of the PDU, in bytes.

If that's not what your "get PDU length" routine does, you MUST change it to do so.