ROHC: self-describing length - 4 bytes indicated in 3 bits

This commit is contained in:
Martin Mathieson 2022-09-26 10:57:38 +01:00
parent bac5bc8daf
commit 92af8b2f51
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ get_self_describing_var_len_val(tvbuff_t *tvb, proto_tree *tree, int offset, int
} else if ((oct&0xe0)==0xe0) {
/* First bits are 111: 4 octets */
*val_len = 4;
proto_tree_add_bits_item(tree, hf_rohc_var_len, tvb, bit_offset, 4, ENC_BIG_ENDIAN);
proto_tree_add_bits_item(tree, hf_rohc_var_len, tvb, bit_offset, 3, ENC_BIG_ENDIAN);
bit_offset+=3;
num_bits = 29;
val = tvb_get_ntohl(tvb, offset)&0x1fffffff;