MKA: Adding support for Announcement TLV padding (Bugfix)

This commit is contained in:
Dr. Lars Völker 2021-11-21 14:04:41 +00:00 committed by Jaap Keuter
parent b5917d0182
commit abf9ed5f11
1 changed files with 9 additions and 0 deletions

View File

@ -541,6 +541,15 @@ dissect_announcement(proto_tree *mka_tree, packet_info *pinfo, tvbuff_t *tvb, in
offset += announcement_len;
if (announcement_len%4) {
int padding_len = (4 - (announcement_len % 4));
proto_tree_add_item(announcement_set_tree, hf_mka_padding,
tvb, offset, padding_len, ENC_NA);
offset += padding_len;
}
*offset_ptr = offset;
}