forked from osmocom/wireshark
BGP dissector: Fixing NLRI length for flow spec NLRI
Bug: 12568 Change-Id: Id2b89c2d133865771e21acf3ee224f57ac9d262b Reviewed-on: https://code.wireshark.org/review/16203 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
e4c86ac83c
commit
e55eaf573b
|
@ -2577,7 +2577,7 @@ decode_flowspec_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, guint16 afi,
|
|||
if (tot_flow_len >= 240)
|
||||
{
|
||||
len_16 = tvb_get_ntohs(tvb, offset);
|
||||
tot_flow_len = len_16 >> 4; /* move 4 bits to the right to remove first f */
|
||||
tot_flow_len = len_16 & 0x0FFF; /* remove most significant nibble */
|
||||
offset_len = 2;
|
||||
} else {
|
||||
offset_len = 1;
|
||||
|
|
Loading…
Reference in New Issue