mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
odp-util: Fix put_nd_key().
Actually copy the 'nd_target' from the key. Found by inspection. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -4711,7 +4711,7 @@ get_nd_key(const struct flow *flow, struct ovs_key_nd *nd)
|
||||
static void
|
||||
put_nd_key(const struct ovs_key_nd *nd, struct flow *flow)
|
||||
{
|
||||
memcpy(&flow->nd_target, &flow->nd_target, sizeof flow->nd_target);
|
||||
memcpy(&flow->nd_target, nd->nd_target, sizeof flow->nd_target);
|
||||
/* nd_sll and nd_tll are stored in arp_sha and arp_tha, respectively */
|
||||
memcpy(flow->arp_sha, nd->nd_sll, ETH_ADDR_LEN);
|
||||
memcpy(flow->arp_tha, nd->nd_tll, ETH_ADDR_LEN);
|
||||
|
Reference in New Issue
Block a user