diff options
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_emacb.c')
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_emacb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_emacb.c b/nuttx/arch/arm/src/sama5/sam_emacb.c index 9a0a70d67..c459b526e 100644 --- a/nuttx/arch/arm/src/sama5/sam_emacb.c +++ b/nuttx/arch/arm/src/sama5/sam_emacb.c @@ -1494,9 +1494,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"); @@ -1516,7 +1516,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"); |