summaryrefslogtreecommitdiff
path: root/nuttx/net/arp/arp_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/arp/arp_out.c')
-rw-r--r--nuttx/net/arp/arp_out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/arp/arp_out.c b/nuttx/net/arp/arp_out.c
index d365dfdc2..7e77bfc4a 100644
--- a/nuttx/net/arp/arp_out.c
+++ b/nuttx/net/arp/arp_out.c
@@ -58,8 +58,8 @@
****************************************************************************/
#define ETHBUF ((struct eth_hdr_s *)&dev->d_buf[0])
-#define ARPBUF ((struct arp_hdr_s *)&dev->d_buf[NET_LL_HDRLEN])
-#define IPBUF ((struct arp_iphdr_s *)&dev->d_buf[NET_LL_HDRLEN])
+#define ARPBUF ((struct arp_hdr_s *)&dev->d_buf[ETH_HDRLEN])
+#define IPBUF ((struct arp_iphdr_s *)&dev->d_buf[ETH_HDRLEN])
/****************************************************************************
* Private Types
@@ -247,7 +247,7 @@ void arp_out(FAR struct net_driver_s *dev)
memcpy(peth->src, dev->d_mac.ether_addr_octet, ETHER_ADDR_LEN);
peth->type = HTONS(ETHTYPE_IP);
- dev->d_len += NET_LL_HDRLEN;
+ dev->d_len += ETH_HDRLEN;
}
#endif /* CONFIG_NET_ARP */