From 2796dd7ee10e62bfe623a1a4855bbaaf4b5eb53c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 1 Feb 2015 09:00:42 -0600 Subject: [PATCH] SIM: fix a case in the simulated Ethernet driver where it was using a old structure name --- arch/sim/src/up_netdriver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/up_netdriver.c b/arch/sim/src/up_netdriver.c index 383bf46c1b..1bf5a07e23 100644 --- a/arch/sim/src/up_netdriver.c +++ b/arch/sim/src/up_netdriver.c @@ -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