summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/sam_emaca.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_emaca.c')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_emaca.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_emaca.c b/nuttx/arch/arm/src/sama5/sam_emaca.c
index 66f924478..acaac9b8c 100644
--- a/nuttx/arch/arm/src/sama5/sam_emaca.c
+++ b/nuttx/arch/arm/src/sama5/sam_emaca.c
@@ -1173,9 +1173,9 @@ static void sam_receive(struct sam_emac_s *priv)
/* We only accept IP packets of the configured type and ARP packets */
#ifdef CONFIG_NET_IPv6
- else if (BUF->type == HTONS(UIP_ETHTYPE_IP6))
+ else if (BUF->type == HTONS(ETHTYPE_IP6))
#else
- else if (BUF->type == HTONS(UIP_ETHTYPE_IP))
+ else if (BUF->type == HTONS(ETHTYPE_IP))
#endif
{
nllvdbg("IP frame\n");
@@ -1195,7 +1195,7 @@ static void sam_receive(struct sam_emac_s *priv)
sam_transmit(priv);
}
}
- else if (BUF->type == htons(UIP_ETHTYPE_ARP))
+ else if (BUF->type == htons(ETHTYPE_ARP))
{
nllvdbg("ARP frame\n");