From RABRET Laurent RD-MAPS-ISS:

Please find enclosed a patch for the BGP dissector.
A 0 length IP address is valid in NLRI dissection. It just means "0/0 address".

svn path=/trunk/; revision=17634
This commit is contained in:
Anders Broman 2006-03-15 18:53:54 +00:00
parent eb98b0f366
commit c26db21d54
1 changed files with 2 additions and 2 deletions

View File

@ -769,7 +769,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
plen -= (labnum * 3*8);
rd_type = tvb_get_ntohs(tvb, offset);
if (plen <= 8*8) {
if (plen < 8*8) {
proto_tree_add_text(tree, tvb, start_offset, 1,
"%s Labeled VPN IPv4 prefix length %u invalid",
tag, plen + (labnum * 3*8));
@ -946,7 +946,7 @@ decode_prefix_MP(proto_tree *tree, int hf_addr4, int hf_addr6,
plen -= (labnum * 3*8);
rd_type = tvb_get_ntohs(tvb,offset);
if (plen <= 8*8) {
if (plen < 8*8) {
proto_tree_add_text(tree, tvb, start_offset, 1,
"%s Labeled VPN IPv6 prefix length %u invalid",
tag, plen + (labnum * 3*8));