From 9d236afafb7817df8a4e9fe6a46f00109e3b86d9 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 2 Nov 2017 11:13:57 -0500 Subject: ovn: Allow ct_lb actions to take IPv6 address arguments. The ct_lb action previously assumed that any address arguments were IPv4. This patch expands the parsing, formatting, and encoding of ct_lb to be amenable to IPv6 addresses as well. Signed-off-by: Mark Michelson Signed-off-by: Ben Pfaff --- include/ovn/actions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ovn/actions.h b/include/ovn/actions.h index 0a04af7aa..63885da3c 100644 --- a/include/ovn/actions.h +++ b/include/ovn/actions.h @@ -200,7 +200,11 @@ struct ovnact_ct_nat { }; struct ovnact_ct_lb_dst { - ovs_be32 ip; + int family; + union { + struct in6_addr ipv6; + ovs_be32 ipv4; + }; uint16_t port; }; -- cgit v1.2.1