- if (vd.host_ip4_prefix_len)
- pfx =
- route::prefix_t(0, (uint8_t*)vd.host_ip4_addr, vd.host_ip4_prefix_len);
- else if (vd.host_ip6_prefix_len)
- pfx =
- route::prefix_t(1, (uint8_t*)vd.host_ip6_addr, vd.host_ip6_prefix_len);
+ if (vd.host_ip4_prefix.len)
+ pfx = route::prefix_t(
+ 0, (uint8_t*)vd.host_ip4_prefix.address, vd.host_ip4_prefix.len);
+ else if (vd.host_ip6_prefix.len)
+ pfx = route::prefix_t(
+ 1, (uint8_t*)vd.host_ip6_prefix.address, vd.host_ip6_prefix.len);