Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tcp_dissect_pdus warning message

Warning message: passing argument 6 of 'tcp_dissect_pdus' from incompatible pointer type [enabled by default]

static int dissect_foo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *ptr) { length = tvb_captured_length(tvb); tcp_dissect_pdus(tvb, pinfo, tree, TRUE, FRAME_HEADER_LEN, get_foo_message_len, dissect_foo_message, ptr); return length; }

click to hide/show revision 2
None

tcp_dissect_pdus warning message

Warning message: passing argument 6 of 'tcp_dissect_pdus' from incompatible pointer type [enabled by default]

static int dissect_foo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *ptr)
{
  length = tvb_captured_length(tvb);
  tcp_dissect_pdus(tvb, pinfo, tree, TRUE, FRAME_HEADER_LEN, get_foo_message_len, dissect_foo_message, ptr); 
  return length;
}

}