coap: Revert "Store ctype values in transaction tracking"
This change was based on a incomplete/incorrect implementation of LwM2M and is not correct because the payload encoding is mandatory in the response. This reverts commit46fcf452ac
. This reverts commitb1e0cb01b3
. Change-Id: I89ae1f84e2735ad049a0f7c9045175940bed25cb Reviewed-on: https://code.wireshark.org/review/27770 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
parent
afd0eef4f6
commit
1bdc98936f
|
@ -575,7 +575,7 @@ dissect_coap_opt_ctype(tvbuff_t *tvb, proto_item *head_item, proto_tree *subtree
|
|||
coinfo->ctype_value = coap_get_opt_uint(tvb, offset, opt_length);
|
||||
}
|
||||
|
||||
coinfo->ctype_str = val_to_str_const(coinfo->ctype_value, vals_ctype, "Unknown Type");
|
||||
coinfo->ctype_str = val_to_str(coinfo->ctype_value, vals_ctype, "Unknown Type %u");
|
||||
|
||||
proto_tree_add_string(subtree, hf, tvb, offset, opt_length, coinfo->ctype_str);
|
||||
|
||||
|
@ -1102,10 +1102,6 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
|
|||
coap_trans->req_frame = pinfo->num;
|
||||
coap_trans->rsp_frame = 0;
|
||||
coap_trans->req_time = pinfo->fd->abs_ts;
|
||||
if (coinfo->ctype_str) {
|
||||
coap_trans->req_ctype_str = coinfo->ctype_str;
|
||||
coap_trans->req_ctype_value = coinfo->ctype_value;
|
||||
}
|
||||
if (coinfo->uri_str_strbuf) {
|
||||
/* Store the URI into CoAP transaction info */
|
||||
coap_trans->uri_str_strbuf = wmem_strbuf_new(wmem_file_scope(), wmem_strbuf_get_str(coinfo->uri_str_strbuf));
|
||||
|
@ -1130,10 +1126,6 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
|
|||
/* Log the first matching response frame */
|
||||
coap_trans->rsp_frame = pinfo->num;
|
||||
}
|
||||
if (coap_trans->req_ctype_str) {
|
||||
coinfo->ctype_str = coap_trans->req_ctype_str;
|
||||
coinfo->ctype_value = coap_trans->req_ctype_value;
|
||||
}
|
||||
if (coap_trans->uri_str_strbuf) {
|
||||
/* Copy the URI stored in matching transaction info into CoAP packet info */
|
||||
coinfo->uri_str_strbuf = wmem_strbuf_new(wmem_packet_scope(), wmem_strbuf_get_str(coap_trans->uri_str_strbuf));
|
||||
|
|
|
@ -47,8 +47,6 @@ typedef struct {
|
|||
guint32 req_frame;
|
||||
guint32 rsp_frame;
|
||||
nstime_t req_time;
|
||||
const gchar *req_ctype_str;
|
||||
guint req_ctype_value;
|
||||
wmem_strbuf_t *uri_str_strbuf;
|
||||
oscore_info_t *oscore_info; /* OSCORE transaction to decrypt response */
|
||||
} coap_transaction;
|
||||
|
|
Loading…
Reference in New Issue