Skip to content

Commit

Permalink
fixing memcpy of mac in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndancejic committed May 14, 2024
1 parent 2462d8d commit 58a904a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncd/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ void test_bulk_neighbor_set()

sai_mac_t mac = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};
attr.id = SAI_NEIGHBOR_ENTRY_ATTR_DST_MAC_ADDRESS;
attr.value.mac = mac;
memcpy(attr.value.mac, mac, 6);
neighbor_attrs.push_back(list);
neighbor_attrs_count.push_back(2);
}
Expand Down

0 comments on commit 58a904a

Please sign in to comment.