]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
RPKI: ipv6
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Wed, 23 Dec 2015 12:48:23 +0000 (13:48 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Wed, 23 Dec 2015 14:09:11 +0000 (15:09 +0100)
proto/rpki/packets.c

index cd3dd5f59c5d11a0e30e4ea9bed2f78bcb9176a5..e5bc1fc71ddcdfbb2233401642aee0c525fbd575 100644 (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)
   {