openbmp icon indicating copy to clipboard operation
openbmp copied to clipboard

Support for RFC5549

Open ayalaalex opened this issue 7 years ago • 2 comments

Advertising IPV4 networks with IPV6 NH https://tools.ietf.org/html/rfc5549

Right now if the Prefix is IPV4 openBMP will convert NH to IPV4 format, otherwise use IPV6 format.

if (nlri.nh_len > 16) memcpy(ip_raw, nlri.next_hop, 16); else memcpy(ip_raw, nlri.next_hop, nlri.nh_len);

inet_ntop(isIPv4 ? AF_INET : AF_INET6, ip_raw, ip_char, sizeof(ip_char));

ayalaalex avatar Jun 13 '18 15:06 ayalaalex

VPNV6 prefixes have similar issues: u*>i 10.20.1.132:1:3ffe::4207:100/120 100 None ::ffff:10.20.1.131 38271 524280

Gets stored as prefix with NH :: instead of ::ffff:10.20.1.131 also the path_id it sets it to 0 instead of 38271.

ayalaalex avatar Jun 26 '18 18:06 ayalaalex

Thanks for the details. Will fix this in the coming weeks. There are some collector updates that need to be done.

TimEvens avatar Sep 18 '18 04:09 TimEvens