diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-10-31 09:29:07 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-10-31 09:29:07 +0000 |
commit | 2d1bb39121cf739517b55c68a84e5d9ad5b31619 (patch) | |
tree | fff9b9d1a5f7445ca000040fe0c8399298acbac8 /plugins | |
parent | 4343de3513f4a1405f06ca9bdf82c134ac10594e (diff) | |
download | wireshark-2d1bb39121cf739517b55c68a84e5d9ad5b31619.tar.gz |
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 'plugins')
-rw-r--r-- | plugins/agentx/packet-agentx.c | 2 | ||||
-rw-r--r-- | plugins/gryphon/packet-gryphon.c | 2 | ||||
-rw-r--r-- | plugins/opsi/packet-opsi.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/agentx/packet-agentx.c b/plugins/agentx/packet-agentx.c index 0149d89a07..f7b6b2c49c 100644 --- a/plugins/agentx/packet-agentx.c +++ b/plugins/agentx/packet-agentx.c @@ -758,7 +758,7 @@ static void dissect_rem_caps_pdu(tvbuff_t *tvb, proto_tree *tree,int offset,int } -static guint get_agentx_pdu_len(tvbuff_t *tvb, int offset) +static guint get_agentx_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) { guint8 flags; guint32 plen; diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c index 753a271cb4..75aad52ac3 100644 --- a/plugins/gryphon/packet-gryphon.c +++ b/plugins/gryphon/packet-gryphon.c @@ -148,7 +148,7 @@ static const char *frame_type[] = { #define FRAME_HEADER_LEN 8 static guint -get_gryphon_pdu_len(tvbuff_t *tvb, int offset) +get_gryphon_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) { guint16 plen; int padded_len; diff --git a/plugins/opsi/packet-opsi.c b/plugins/opsi/packet-opsi.c index 6be06c57a4..e5cb0fdb8f 100644 --- a/plugins/opsi/packet-opsi.c +++ b/plugins/opsi/packet-opsi.c @@ -391,7 +391,7 @@ void decode_time_attribute(tvbuff_t *tvb, proto_tree *tree, int* hfValue, int of /****************************************************************************/ /* To find the correct size of the PDU. Needed by the desegmentation feature*/ -static guint get_opsi_pdu_len(tvbuff_t *tvb, int offset) +static guint get_opsi_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) { /* * Get the length of the OPSI packet. |