diff options
Diffstat (limited to 'nuttx/drivers/net/e1000.c')
-rw-r--r-- | nuttx/drivers/net/e1000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/net/e1000.c b/nuttx/drivers/net/e1000.c index ce3fe13ce..fe9f5acde 100644 --- a/nuttx/drivers/net/e1000.c +++ b/nuttx/drivers/net/e1000.c @@ -567,10 +567,10 @@ static void e1000_receive(struct e1000_dev *e1000) /* We only accept IP packets of the configured type and ARP packets */ #ifdef CONFIG_NET_IPv6 - if (BUF->type == HTONS(UIP_ETHTYPE_IP6)) + if (BUF->type == HTONS(ETHTYPE_IP6)) #else { - if (BUF->type == HTONS(UIP_ETHTYPE_IP)) + if (BUF->type == HTONS(ETHTYPE_IP)) #endif { arp_ipin(&e1000->netdev); @@ -586,7 +586,7 @@ static void e1000_receive(struct e1000_dev *e1000) e1000_transmit(e1000); } } - else if (BUF->type == htons(UIP_ETHTYPE_ARP)) + else if (BUF->type == htons(ETHTYPE_ARP)) { arp_arpin(&e1000->netdev); |