Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sim_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 +414,15 @@ extern const ETH_MAC eth_mac_bcast;
* and memcpy will copy from somewhere other than the first byte of the source MAC
* address.
*/
static inline void eth_copy_mac(ETH_MAC dst, const ETH_MAC src)
static SIM_INLINE void eth_copy_mac(ETH_MAC dst, const ETH_MAC src)
{
memcpy(dst, src, sizeof(ETH_MAC));
}

/* Type-enforcing MAC comparison function. Helps to avoid subtle memcmp() issues
* (see above).
*/
static inline int eth_mac_cmp(const ETH_MAC a, const ETH_MAC b)
static SIM_INLINE int eth_mac_cmp(const ETH_MAC a, const ETH_MAC b)
{
return memcmp(a, b, sizeof(ETH_MAC));
}
Expand Down
Loading