BGP: EVPN - Route Type 4 - "Invalid length of IP Address" - "Expert Info" shows a false error

Wrong offset (14 -> 20) to get IP Address Legnth

Issue Reported by Rui
Bug: 10873

Change-Id: Ib7aa80ac78028a2c8d548f4030278166be9ed0cc
Reviewed-on: https://code.wireshark.org/review/6657
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Alexis La Goutte 2015-01-19 21:28:52 +01:00
parent 9fd507827e
commit b41065e223
1 changed files with 2 additions and 2 deletions

View File

@ -3825,8 +3825,8 @@ static int decode_evpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, packet
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_esi, tvb, start_offset+10,
10, ENC_NA);
ip_len = tvb_get_guint8(tvb, offset + 14) / 8;
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_iplen, tvb, start_offset+14,
ip_len = tvb_get_guint8(tvb, offset + 20) / 8;
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_iplen, tvb, start_offset+20,
1, ENC_BIG_ENDIAN);
total_length = 21;