From: Pavel TvrdĂ­k Date: Wed, 23 Dec 2015 12:48:23 +0000 (+0100) Subject: RPKI: ipv6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b06964dfc034e3c2e04c532f89cc59ae94dbd21d;p=thirdparty%2Fbird.git RPKI: ipv6 --- diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c index cd3dd5f59..e5bc1fc71 100644 --- a/proto/rpki/packets.c +++ b/proto/rpki/packets.c @@ -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) {