summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim/src/up_netdriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sim/src/up_netdriver.c')
-rw-r--r--nuttx/arch/sim/src/up_netdriver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/sim/src/up_netdriver.c b/nuttx/arch/sim/src/up_netdriver.c
index 649b9afaf..8b22c00f9 100644
--- a/nuttx/arch/sim/src/up_netdriver.c
+++ b/nuttx/arch/sim/src/up_netdriver.c
@@ -156,14 +156,14 @@ void netdriver_loop(void)
* MAC address
*/
- if (g_sim_dev.d_len > UIP_LLH_LEN && up_comparemac(BUF->ether_dhost, &g_sim_dev.d_mac) == 0)
+ if (g_sim_dev.d_len > NET_LLH_LEN && up_comparemac(BUF->ether_dhost, &g_sim_dev.d_mac) == 0)
{
/* We only accept IP packets of the configured type and ARP packets */
#ifdef CONFIG_NET_IPv6
- if (BUF->ether_type == htons(UIP_ETHTYPE_IP6))
+ if (BUF->ether_type == htons(ETHTYPE_IP6))
#else
- if (BUF->ether_type == htons(UIP_ETHTYPE_IP))
+ if (BUF->ether_type == htons(ETHTYPE_IP))
#endif
{
arp_ipin(&g_sim_dev);
@@ -180,7 +180,7 @@ void netdriver_loop(void)
netdev_send(g_sim_dev.d_buf, g_sim_dev.d_len);
}
}
- else if (BUF->ether_type == htons(UIP_ETHTYPE_ARP))
+ else if (BUF->ether_type == htons(ETHTYPE_ARP))
{
arp_arpin(&g_sim_dev);