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:
parent
eb98b0f366
commit
c26db21d54
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue