aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-02-05 15:52:42 +0100
committerMichael Mann <mmann78@netscape.net>2016-02-05 23:30:54 +0000
commitc296001158b979497242dd726430b0b7cb26f984 (patch)
treed6a2b055a818282928e4ce67ac071a4521837c96 /asn1
parentbd6531b91b23bec6e4327cd2c3a47621fdf0c14a (diff)
RTSE and PRES relies on the TCP conversation to do reassembly, switch to
the new interface. Change-Id: I4f818d55416d3b1d09b46015d83f3acc5a9e71cc Reviewed-on: https://code.wireshark.org/review/13744 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'asn1')
-rw-r--r--asn1/pres/packet-pres-template.c13
-rw-r--r--asn1/rtse/packet-rtse-template.c10
2 files changed, 18 insertions, 5 deletions
diff --git a/asn1/pres/packet-pres-template.c b/asn1/pres/packet-pres-template.c
index c3e9367189..f0ec1cee41 100644
--- a/asn1/pres/packet-pres-template.c
+++ b/asn1/pres/packet-pres-template.c
@@ -142,8 +142,13 @@ register_ctx_id_and_oid(packet_info *pinfo _U_, guint32 idx, const char *oid)
pco=wmem_new(wmem_file_scope(), pres_ctx_oid_t);
pco->ctx_id=idx;
pco->oid=wmem_strdup(wmem_file_scope(), oid);
- conversation=find_conversation (pinfo->num, &pinfo->src, &pinfo->dst,
+ if (pinfo->ptype == PT_TCP) {
+ conversation = find_conversation_ext_from_pinfo(pinfo);
+ }
+ else {
+ conversation = find_conversation(pinfo->num, &pinfo->src, &pinfo->dst,
pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
+ }
if (conversation) {
pco->idx = conversation->index;
} else {
@@ -184,8 +189,12 @@ find_oid_by_pres_ctx_id(packet_info *pinfo, guint32 idx)
conversation_t *conversation;
pco.ctx_id=idx;
- conversation=find_conversation (pinfo->num, &pinfo->src, &pinfo->dst,
+ if (pinfo->ptype == PT_TCP) {
+ conversation = find_conversation_ext_from_pinfo(pinfo);
+ }else{
+ conversation = find_conversation(pinfo->num, &pinfo->src, &pinfo->dst,
pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
+ }
if (conversation) {
pco.idx = conversation->index;
} else {
diff --git a/asn1/rtse/packet-rtse-template.c b/asn1/rtse/packet-rtse-template.c
index eb8d1bf2ae..ddc314525f 100644
--- a/asn1/rtse/packet-rtse-template.c
+++ b/asn1/rtse/packet-rtse-template.c
@@ -231,9 +231,13 @@ dissect_rtse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
((session->spdu_type == SES_DATA_TRANSFER) ||
(session->spdu_type == SES_MAJOR_SYNC_POINT))) {
/* Use conversation index as fragment id */
- conversation = find_conversation (pinfo->num,
- &pinfo->src, &pinfo->dst, pinfo->ptype,
- pinfo->srcport, pinfo->destport, 0);
+ if (pinfo->ptype == PT_TCP) {
+ conversation = find_conversation_ext_from_pinfo(pinfo);
+ } else {
+ conversation = find_conversation(pinfo->num,
+ &pinfo->src, &pinfo->dst, pinfo->ptype,
+ pinfo->srcport, pinfo->destport, 0);
+ }
if (conversation != NULL) {
rtse_id = conversation->index;
}