diff options
author | Mark Michelson <mmichels@redhat.com> | 2017-11-02 11:13:57 -0500 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-11-02 10:49:54 -0700 |
commit | 9d236afafb7817df8a4e9fe6a46f00109e3b86d9 (patch) | |
tree | 752cbabe9d9d3a58dbc014849c870b0ef2795ee8 /include | |
parent | e463f310b17d7dda864c33c8c3e6f19bd8f66c67 (diff) | |
download | openvswitch-9d236afafb7817df8a4e9fe6a46f00109e3b86d9.tar.gz |
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 <mmichels@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ovn/actions.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; }; |