summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-04 15:40:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-04 15:40:49 -0600
commiteb46f67f7957f8a27d7c09836ada9cf8264d0ad5 (patch)
treed897ddf039dfec728865da57ebf7ead5a8425ba8 /misc
parent7ad1aa2d17297231ff92fa8933eb75feaae3570d (diff)
downloadnuttx-eb46f67f7957f8a27d7c09836ada9cf8264d0ad5.tar.gz
nuttx-eb46f67f7957f8a27d7c09836ada9cf8264d0ad5.tar.bz2
nuttx-eb46f67f7957f8a27d7c09836ada9cf8264d0ad5.zip
NET: More renaming
Diffstat (limited to 'misc')
-rw-r--r--misc/drivers/rtl8187x/rtl8187x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/drivers/rtl8187x/rtl8187x.c b/misc/drivers/rtl8187x/rtl8187x.c
index dd07d1d6d..b131ba2d3 100644
--- a/misc/drivers/rtl8187x/rtl8187x.c
+++ b/misc/drivers/rtl8187x/rtl8187x.c
@@ -2110,7 +2110,7 @@ static inline int rtl8187x_receive(FAR struct rtl8187x_state_s *priv,
* and an Ethernet header
*/
- if (iolen < UIP_LLH_LEN + SIZEOF_RXDESC)
+ if (iolen < NET_LLH_LEN + SIZEOF_RXDESC)
{
RTL8187X_STATS(priv, rxtoosmall);
RTL8187X_STATS(priv, rxdropped);
@@ -2235,9 +2235,9 @@ static inline void rtl8187x_rxdispatch(FAR struct rtl8187x_state_s *priv,
/* We only accept IP packets of the configured type and ARP packets */
#ifdef CONFIG_NET_IPv6
- if (ethhdr->type == HTONS(UIP_ETHTYPE_IP6))
+ if (ethhdr->type == HTONS(ETHTYPE_IP6))
#else
- if (ethhdr->type == HTONS(UIP_ETHTYPE_IP))
+ if (ethhdr->type == HTONS(ETHTYPE_IP))
#endif
{
RTL8187X_STATS(priv, rxippackets);
@@ -2254,7 +2254,7 @@ static inline void rtl8187x_rxdispatch(FAR struct rtl8187x_state_s *priv,
rtl8187x_transmit(priv);
}
}
- else if (ethhdr->type == htons(UIP_ETHTYPE_ARP))
+ else if (ethhdr->type == htons(ETHTYPE_ARP))
{
RTL8187X_STATS(priv, rxarppackets);
arp_arpin(&priv->ethdev);