diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-06-11 05:23:52 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-06-11 05:23:52 +0000 |
commit | ae868938aaf6cf6b196e9dd4e6719e8e4fdd0208 (patch) | |
tree | 8c5f60899907af85c5e2fccd8d4dd17b4657ebf5 /epan/dissectors/packet-coap.c | |
parent | 482221763bb91cd408d7c7e733ca5bb3fb0b1adc (diff) |
From Hauke Mehrtens:
The field named Transaction ID is named Message ID in the RFC draft
version 17
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8780
svn path=/trunk/; revision=49880
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r-- | epan/dissectors/packet-coap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c index 4a082b70aa..2f9679665a 100644 --- a/epan/dissectors/packet-coap.c +++ b/epan/dissectors/packet-coap.c @@ -46,7 +46,7 @@ static int hf_coap_ttype = -1; static int hf_coap_token_len = -1; static int hf_coap_token = -1; static int hf_coap_code = -1; -static int hf_coap_tid = -1; +static int hf_coap_mid = -1; static int hf_coap_payload_desc = -1; static int hf_coap_opt_name = -1; static int hf_coap_opt_desc = -1; @@ -802,7 +802,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) guint8 ttype = 0; guint8 token_len = 0; guint8 code = 0; - guint16 tid = 0; + guint16 mid = 0; gint coap_length = 0; /* initialize the CoAP length and the content-Format */ @@ -831,12 +831,12 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) code = tvb_get_guint8(tvb, offset); offset += 1; - proto_tree_add_item(coap_tree, hf_coap_tid, tvb, offset, 2, ENC_BIG_ENDIAN); - tid = tvb_get_ntohs(tvb, offset); + proto_tree_add_item(coap_tree, hf_coap_mid, tvb, offset, 2, ENC_BIG_ENDIAN); + mid = tvb_get_ntohs(tvb, offset); offset += 2; /* append the header information */ - proto_item_append_text(coap_tree, ", %s, %s, TID:%u", val_to_str(ttype, vals_ttype, "Unkown %d"), val_to_str(code, vals_code, "Unknown %d"), tid); + proto_item_append_text(coap_tree, ", %s, %s, MID:%u", val_to_str(ttype, vals_ttype, "Unkown %d"), val_to_str(code, vals_code, "Unknown %d"), mid); /* initialize the external value */ coap_block_number = DEFAULT_COAP_BLOCK_NUMBER; @@ -862,7 +862,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "CoAP"); col_clear(pinfo->cinfo, COL_INFO); col_add_fstr(pinfo->cinfo, COL_INFO, "%s", val_to_str(ttype, vals_ttype_short, "Unknown %d")); - col_append_fstr(pinfo->cinfo, COL_INFO, ", TID:%u", tid); + col_append_fstr(pinfo->cinfo, COL_INFO, ", MID:%u", mid); col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", val_to_str(code, vals_code, "Unknown %d")); if (coap_token_str[0] != '\0') col_append_fstr(pinfo->cinfo, COL_INFO, ", TKN:%s", coap_token_str); @@ -938,10 +938,10 @@ proto_register_coap(void) FT_UINT8, BASE_DEC, VALS(vals_code), 0x0, "CoAP Method or Response Code", HFILL } }, - { &hf_coap_tid, - { "Transaction ID", "coap.tid", + { &hf_coap_mid, + { "Message ID", "coap.mid", FT_UINT16, BASE_DEC, NULL, 0x0, - "CoAP Transaction ID", HFILL } + "CoAP Message ID", HFILL } }, { &hf_coap_payload_desc, { "Payload Desc", "coap.opt.payload_desc", |