BGP: fix BGP-LS IPv6 Neighbor Address TLV s length

This commit is contained in:
Louis Scalbert 2023-01-13 09:02:02 +00:00 committed by AndersBroman
parent 34ce99f32e
commit 764890d159
1 changed files with 2 additions and 2 deletions

View File

@ -4891,10 +4891,10 @@ static int decode_bgp_link_nlri_link_descriptors(tvbuff_t *tvb,
break;
case BGP_NLRI_TLV_IPV6_NEIGHBOR_ADDRESS:
if(sub_length != BGP_NLRI_TLV_IPV6_NEIGHBOR_ADDRESS){
if(sub_length != BGP_NLRI_TLV_LEN_IPV6_NEIGHBOR_ADDRESS){
expert_add_info_format(pinfo, tlv_tree, &ei_bgp_ls_error,
"Unexpected IPv6 Neighbor Address TLV's length (%u), it must be %u bytes!",
sub_length, BGP_NLRI_TLV_IPV6_NEIGHBOR_ADDRESS);
sub_length, BGP_NLRI_TLV_LEN_IPV6_NEIGHBOR_ADDRESS);
return -1;
}
tlv_sub_item = proto_tree_add_item(tlv_tree,