summaryrefslogtreecommitdiff
path: root/nuttx/drivers/net/encx24j600.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/net/encx24j600.c')
-rw-r--r--nuttx/drivers/net/encx24j600.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/drivers/net/encx24j600.c b/nuttx/drivers/net/encx24j600.c
index d6cd1386e..a6c4f8ce2 100644
--- a/nuttx/drivers/net/encx24j600.c
+++ b/nuttx/drivers/net/encx24j600.c
@@ -1489,9 +1489,9 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
/* 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
{
nllvdbg("Try to process IP packet (%02x)\n", BUF->type);
@@ -1518,7 +1518,7 @@ static void enc_rxdispatch(FAR struct enc_driver_s *priv)
enc_txenqueue(priv);
}
}
- else if (BUF->type == htons(UIP_ETHTYPE_ARP))
+ else if (BUF->type == htons(ETHTYPE_ARP))
{
nllvdbg("ARP packet received (%02x)\n", BUF->type);
arp_arpin(&priv->dev);
@@ -1649,7 +1649,7 @@ static void enc_pktif(FAR struct enc_driver_s *priv)
/* Check for a usable packet length (4 added for the CRC) */
- else if (pktlen > (CONFIG_NET_BUFSIZE + 4) || pktlen <= (UIP_LLH_LEN + 4))
+ else if (pktlen > (CONFIG_NET_BUFSIZE + 4) || pktlen <= (NET_LLH_LEN + 4))
{
nlldbg("Bad packet size dropped (%d)\n", pktlen);