diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2019-08-26 10:38:06 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2019-08-26 17:24:36 +0000 |
commit | d966c0dd5e7e66fd06fac0c07d496f5090d7d220 (patch) | |
tree | e808b5ba261d8e719957775221a67beefaf378b4 /epan/dissectors/packet-coap.h | |
parent | 8103070fd8d50f36f622fe925c2be299848f7c23 (diff) |
coap: Improve request/response tracking
Use both Token and Message ID in request/response tracking and retransmission
detection. The token is the same when using observables but the message id is
increasing.
Change-Id: I545416ce139328e6a8eb67258d7b51bddb6b278e
Reviewed-on: https://code.wireshark.org/review/34367
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-coap.h')
-rw-r--r-- | epan/dissectors/packet-coap.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/dissectors/packet-coap.h b/epan/dissectors/packet-coap.h index 8e1e06441b..b8783c7ce2 100644 --- a/epan/dissectors/packet-coap.h +++ b/epan/dissectors/packet-coap.h @@ -44,13 +44,17 @@ typedef struct { /* CoAP Transaction tracking information */ typedef struct { - guint32 req_frame; - guint32 rsp_frame; - nstime_t req_time; + wmem_map_t *req_rsp; wmem_strbuf_t *uri_str_strbuf; oscore_info_t *oscore_info; /* OSCORE transaction to decrypt response */ } coap_transaction; +typedef struct { + guint32 req_frame; + guint32 rsp_frame; + nstime_t req_time; +} coap_request_response; + /* common header fields, subtrees and expert info for SSL and DTLS dissectors */ typedef struct coap_common_dissect { struct { |