diff options
Diffstat (limited to 'nuttx/arch/arm/src/sam34/sam_emac.c')
-rw-r--r-- | nuttx/arch/arm/src/sam34/sam_emac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sam34/sam_emac.c b/nuttx/arch/arm/src/sam34/sam_emac.c index 0fe336195..cd85d7710 100644 --- a/nuttx/arch/arm/src/sam34/sam_emac.c +++ b/nuttx/arch/arm/src/sam34/sam_emac.c @@ -1133,9 +1133,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"); @@ -1155,7 +1155,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"); |