tunneling: Fix for concomitant IPv4 and IPv6 tunnels
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Fri, 1 Apr 2016 13:06:05 +0000 (10:06 -0300)
committerBen Pfaff <blp@ovn.org>
Thu, 21 Apr 2016 18:03:55 +0000 (11:03 -0700)
commit110f7c75e567c3af55394dd0a294cc124067115b
tree65c3c707d798bc7f1ebaa799180927597a08f074
parentc61e93d60231ef4a13945c5739889f8a4c6bdc54
tunneling: Fix for concomitant IPv4 and IPv6 tunnels

When using an IPv6 tunnel on the same bridge as an IPv4 tunnel, the flow
received from the IPv6 tunnel would have an IPv4 address added to it, causing
problems when trying to put or execute the action on Linux datapath.

Clearing the IPv6 address when we have a valid IPv4 address fixes this problem.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/tunnel.c
tests/tunnel.at