meta-flow: Correctly set destination MAC in mf_set_flow_value().
authorBen Pfaff <blp@nicira.com>
Fri, 27 Apr 2012 15:45:10 +0000 (08:45 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Apr 2012 19:46:01 +0000 (12:46 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/meta-flow.c

index 69226cbcfb794c8e16f825986e89ee5d7b1e5f65..51db7b1edfd44dc8727089bbce5e0747cb90e46a 100644 (file)
@@ -1344,7 +1344,7 @@ mf_set_flow_value(const struct mf_field *mf,
         break;
 
     case MFF_ETH_DST:
-        memcpy(flow->dl_src, value->mac, ETH_ADDR_LEN);
+        memcpy(flow->dl_dst, value->mac, ETH_ADDR_LEN);
         break;
 
     case MFF_ETH_TYPE: