} group;
struct {
char br_name[IFNAMSIZ];
- ovs_be32 d_ip;
+ struct in6_addr d_ipv6;
} tnl_neigh_cache;
} u;
};
entry = xlate_cache_add_entry(ctx->xin->xcache, XC_TNL_NEIGH);
ovs_strlcpy(entry->u.tnl_neigh_cache.br_name, out_dev->xbridge->name,
sizeof entry->u.tnl_neigh_cache.br_name);
- entry->u.tnl_neigh_cache.d_ip = d_ip;
+ in6_addr_set_mapped_ipv4(&entry->u.tnl_neigh_cache.d_ipv6, d_ip);
}
xlate_report(ctx, "tunneling from "ETH_ADDR_FMT" "IP_FMT
break;
case XC_TNL_NEIGH:
/* Lookup neighbor to avoid timeout. */
- tnl_arp_lookup(entry->u.tnl_neigh_cache.br_name,
- entry->u.tnl_neigh_cache.d_ip, &dmac);
+ tnl_neigh_lookup(entry->u.tnl_neigh_cache.br_name,
+ &entry->u.tnl_neigh_cache.d_ipv6, &dmac);
break;
default:
OVS_NOT_REACHED();