aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcp.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-31 09:29:07 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-10-31 09:29:07 +0000
commit2d1bb39121cf739517b55c68a84e5d9ad5b31619 (patch)
treefff9b9d1a5f7445ca000040fe0c8399298acbac8 /epan/dissectors/packet-tcp.c
parent4343de3513f4a1405f06ca9bdf82c134ac10594e (diff)
change the signature for the get_pdu_len() function pointer passed to tcp_dissect_pdus() to also include a packet_info pointer.
there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size svn path=/trunk/; revision=19751
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r--epan/dissectors/packet-tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index acc926f136..ce1b3b75f6 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -1424,7 +1424,7 @@ again:
void
tcp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
gboolean proto_desegment, guint fixed_len,
- guint (*get_pdu_len)(tvbuff_t *, int),
+ guint (*get_pdu_len)(packet_info *, tvbuff_t *, int),
dissector_t dissect_pdu)
{
volatile int offset = 0;
@@ -1471,7 +1471,7 @@ tcp_dissect_pdus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/*
* Get the length of the PDU.
*/
- plen = (*get_pdu_len)(tvb, offset);
+ plen = (*get_pdu_len)(pinfo, tvb, offset);
if (plen < fixed_len) {
/*
* The PDU length from the fixed-length portion probably didn't