summaryrefslogtreecommitdiff
path: root/nuttx/net/socket
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-05 13:04:48 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-05 13:04:48 -0600
commit2c65ea8325718f37ee4c21f7acd8b3671b6d39c6 (patch)
treeb7d6ddf9571f7c52b9942831dcc3deff4f7092f2 /nuttx/net/socket
parent73d3d807bf41f61f9a35c96b1fdc8c0d62c7c40a (diff)
downloadpx4-nuttx-2c65ea8325718f37ee4c21f7acd8b3671b6d39c6.tar.gz
px4-nuttx-2c65ea8325718f37ee4c21f7acd8b3671b6d39c6.tar.bz2
px4-nuttx-2c65ea8325718f37ee4c21f7acd8b3671b6d39c6.zip
NET: Standardize naming of all protocal header lengths
Diffstat (limited to 'nuttx/net/socket')
-rw-r--r--nuttx/net/socket/net_sendfile.c2
-rw-r--r--nuttx/net/socket/recvfrom.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/socket/net_sendfile.c b/nuttx/net/socket/net_sendfile.c
index 5ff8c6fe0..dfaf5e61f 100644
--- a/nuttx/net/socket/net_sendfile.c
+++ b/nuttx/net/socket/net_sendfile.c
@@ -77,7 +77,7 @@
# define CONFIG_NET_TCP_SPLIT_SIZE 40
#endif
-#define TCPBUF ((struct tcp_iphdr_s *)&dev->d_buf[NET_LLH_LEN])
+#define TCPBUF ((struct tcp_iphdr_s *)&dev->d_buf[NET_LL_HDRLEN])
/****************************************************************************
* Private Types
diff --git a/nuttx/net/socket/recvfrom.c b/nuttx/net/socket/recvfrom.c
index ccc037f4e..fbf03f9c7 100644
--- a/nuttx/net/socket/recvfrom.c
+++ b/nuttx/net/socket/recvfrom.c
@@ -75,8 +75,8 @@
* Definitions
****************************************************************************/
-#define UDPBUF ((struct udp_iphdr_s *)&dev->d_buf[NET_LLH_LEN])
-#define TCPBUF ((struct tcp_iphdr_s *)&dev->d_buf[NET_LLH_LEN])
+#define UDPBUF ((struct udp_iphdr_s *)&dev->d_buf[NET_LL_HDRLEN])
+#define TCPBUF ((struct tcp_iphdr_s *)&dev->d_buf[NET_LL_HDRLEN])
/****************************************************************************
* Private Types