2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-offload-dpdk: Fix IPv6 rewrite cast-align warning.

Fixes: b6207b1d27 ("netdev-offload-dpdk: Support offload of set IPv6 actions.")
Signed-off-by: Eli Britstein <elibr@nvidia.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Eli Britstein
2021-07-25 11:54:36 +03:00
committed by Ilya Maximets
parent b8b31d8410
commit e8cccd3a35

View File

@@ -568,8 +568,11 @@ dump_flow_action(struct ds *s, struct ds *s_extra,
ds_put_format(s, "set_ipv6_%s ", dirstr);
if (set_ipv6) {
struct in6_addr addr;
ds_put_cstr(s, "ipv6_addr ");
ipv6_format_addr((struct in6_addr *) &set_ipv6->ipv6_addr, s);
memcpy(&addr, set_ipv6->ipv6_addr, sizeof addr);
ipv6_format_addr(&addr, s);
ds_put_cstr(s, " ");
}
ds_put_cstr(s, "/ ");