]> git.proxmox.com Git - ovs.git/commitdiff
ofproto-dpif-xlate: Check the right IPv6 address in is_nd_dst_correct().
authorBen Pfaff <blp@ovn.org>
Tue, 10 Jul 2018 17:11:35 +0000 (10:11 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 11 Jul 2018 15:32:28 +0000 (08:32 -0700)
Fixes test 815 "tunnel_push_pop_ipv6 - action".

CC: Aaron Conole <aconole@redhat.com>
Fixes: 6f231f7c3a9e ("xlate: use const struct in6_addr in linklocal check")
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
ofproto/ofproto-dpif-xlate.c

index f8741d446116b3955cf3a7176a2764bcce23a8ae..dc63afa35a6b9a62a7f91c2b014029a4186d2f9d 100644 (file)
@@ -3831,7 +3831,7 @@ is_nd_dst_correct(const struct flow *flow, const struct in6_addr *ipv6_addr)
     const uint8_t *flow_ipv6_addr = (uint8_t *) &flow->ipv6_dst;
     const uint8_t *addr = (uint8_t *) ipv6_addr;
 
-    return (IN6_IS_ADDR_MC_LINKLOCAL(ipv6_addr) &&
+    return (IN6_IS_ADDR_MC_LINKLOCAL(&flow->ipv6_dst) &&
             flow_ipv6_addr[11] == 0x01 &&
             flow_ipv6_addr[12] == 0xff &&
             flow_ipv6_addr[13] == addr[13] &&