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:
Matt Texier 2016-06-29 17:33:21 +02:00 committed by Alexis La Goutte
parent e4c86ac83c
commit e55eaf573b
1 changed files with 1 additions and 1 deletions

View File

@ -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;