SIM: fix a case in the simulated Ethernet driver where it was using a old structure name
This commit is contained in:
parent
b15632e8ba
commit
5f72080e0a
@ -66,7 +66,7 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define BUF ((struct ether_header*)g_sim_dev.d_buf)
|
||||
#define BUF ((struct eth_hdr_s *)g_sim_dev.d_buf)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
@ -182,7 +182,8 @@ void netdriver_loop(void)
|
||||
* MAC address
|
||||
*/
|
||||
|
||||
if (g_sim_dev.d_len > ETH_HDRLEN && up_comparemac(BUF->ether_dhost, &g_sim_dev.d_mac) == 0)
|
||||
if (g_sim_dev.d_len > ETH_HDRLEN &&
|
||||
up_comparemac(BUF->ether_dhost, &g_sim_dev.d_mac) == 0)
|
||||
{
|
||||
#ifdef CONFIG_NET_PKT
|
||||
/* When packet sockets are enabled, feed the frame into the packet
|
||||
|
Loading…
Reference in New Issue
Block a user