summaryrefslogtreecommitdiff
path: root/nuttx/net/icmp/icmp_send.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-06 16:19:26 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-06 16:19:26 -0600
commit13df5a4fc813c0744f78d40fed3c1e36485fe5a6 (patch)
tree64e76d15047df8d275c476e5cf1c221de6d7b159 /nuttx/net/icmp/icmp_send.c
parent02fcad9f51a6919c21ca44ed0c417446bb4082c9 (diff)
downloadpx4-nuttx-13df5a4fc813c0744f78d40fed3c1e36485fe5a6.tar.gz
px4-nuttx-13df5a4fc813c0744f78d40fed3c1e36485fe5a6.tar.bz2
px4-nuttx-13df5a4fc813c0744f78d40fed3c1e36485fe5a6.zip
NET: Rename some non-configurable constants UIP_ to IP_ or TCP_
Diffstat (limited to 'nuttx/net/icmp/icmp_send.c')
-rw-r--r--nuttx/net/icmp/icmp_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/icmp/icmp_send.c b/nuttx/net/icmp/icmp_send.c
index 77135adcb..18de2c01a 100644
--- a/nuttx/net/icmp/icmp_send.c
+++ b/nuttx/net/icmp/icmp_send.c
@@ -122,7 +122,7 @@ void icmp_send(FAR struct net_driver_s *dev, FAR net_ipaddr_t *destaddr)
picmp->len[0] = (dev->d_sndlen >> 8);
picmp->len[1] = (dev->d_sndlen & 0xff);
picmp->nexthdr = IP_PROTO_ICMP;
- picmp->hoplimit = UIP_TTL;
+ picmp->hoplimit = IP_TTL;
net_ipaddr_copy(picmp->srcipaddr, &dev->d_ipaddr);
net_ipaddr_copy(picmp->destipaddr, destaddr);
@@ -138,7 +138,7 @@ void icmp_send(FAR struct net_driver_s *dev, FAR net_ipaddr_t *destaddr)
picmp->ipid[1] = g_ipid & 0xff;
picmp->ipoffset[0] = TCPFLAG_DONTFRAG >> 8;
picmp->ipoffset[1] = TCPFLAG_DONTFRAG & 0xff;
- picmp->ttl = UIP_TTL;
+ picmp->ttl = IP_TTL;
picmp->proto = IP_PROTO_ICMP;
net_ipaddr_hdrcopy(picmp->srcipaddr, &dev->d_ipaddr);