0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 09:58:43 +00:00

RPKI: ipv6

This commit is contained in:
Pavel Tvrdík 2015-12-23 13:48:23 +01:00
parent 19b23a8b92
commit b06964dfc0

View File

@ -714,11 +714,13 @@ rtr_prefix_pdu_2_pfx_record(const struct rtr_socket *rtr_socket, const void *pdu
assert(type == IPV4_PREFIX || type == IPV6_PREFIX);
if (type == IPV4_PREFIX)
{
#ifndef IPV6
const struct pdu_ipv4 *ipv4 = pdu;
pfxr->prefix = ip4_from_u32(ipv4->prefix);
pfxr->asn = ipv4->asn;
pfxr->min_len = ipv4->prefix_len;
pfxr->max_len = ipv4->max_prefix_len;
#endif
}
else if (type == IPV6_PREFIX)
{