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 17, 2024
1 parent 2462d8d commit 56c7728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncd/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ void test_bulk_neighbor_set()
ASSERT_SUCCESS("Failed to create router interface");

neighbor_entry.ip_address.addr_family = SAI_IP_ADDR_FAMILY_IPV4;
neighbor_entry.ip_address.addr.ip4 = htonl(0x0a000000 | i);
neighbor_entry.ip_address.addr.ip4 = 0x10000001 + i;
neighbor_entry.rif_id = rif;
neighbor_entry.switch_id = switch_id;
neighbors.push_back(neighbor_entry);
Expand All @@ -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 56c7728

Please sign in to comment.