forked from osmocom/wireshark
btsmp: Put <none> in COL_INFO when having no keys
Change-Id: If2db9fa1894f586523df882dca224b3b7b0eecb0 Reviewed-on: https://code.wireshark.org/review/25153 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
fb9abcf2d4
commit
fdfa229793
|
@ -223,7 +223,7 @@ dissect_btsmp_key_dist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
|
|||
value = tvb_get_guint8(tvb, offset);
|
||||
|
||||
if (value & 0x01) {
|
||||
col_append_sep_str(pinfo->cinfo, COL_INFO, "", "LTK");
|
||||
col_append_str(pinfo->cinfo, COL_INFO, "LTK");
|
||||
next = TRUE;
|
||||
}
|
||||
if (value & 0x02) {
|
||||
|
@ -238,8 +238,12 @@ dissect_btsmp_key_dist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
|
|||
col_append_sep_str(pinfo->cinfo, COL_INFO, next ? ", " : "", "Linkkey");
|
||||
next = TRUE;
|
||||
}
|
||||
if (value & 0xF0)
|
||||
if (value & 0xF0) {
|
||||
col_append_sep_str(pinfo->cinfo, COL_INFO, next ? ", " : "", "Reserved");
|
||||
}
|
||||
if (!next) {
|
||||
col_append_str(pinfo->cinfo, COL_INFO, "<none>");
|
||||
}
|
||||
|
||||
return offset + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue