summaryrefslogtreecommitdiff
path: root/nuttx/net/pkt
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-26 14:23:21 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-26 14:23:21 -0600
commit54e2e924a10fe187c991ccad392b161007163bf5 (patch)
treed7d5e49406a82224ca8166948d700f82d0044c80 /nuttx/net/pkt
parentf6156f8cce3bc7a944b295aeb9c027e46eeddcf3 (diff)
downloadpx4-nuttx-54e2e924a10fe187c991ccad392b161007163bf5.tar.gz
px4-nuttx-54e2e924a10fe187c991ccad392b161007163bf5.tar.bz2
px4-nuttx-54e2e924a10fe187c991ccad392b161007163bf5.zip
Move files to net/utils; make appropriate name changes, most for uip_lock to net_lock
Diffstat (limited to 'nuttx/net/pkt')
-rw-r--r--nuttx/net/pkt/pkt_conn.c2
-rw-r--r--nuttx/net/pkt/pkt_send.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/net/pkt/pkt_conn.c b/nuttx/net/pkt/pkt_conn.c
index c984bb9b0..55a8a3506 100644
--- a/nuttx/net/pkt/pkt_conn.c
+++ b/nuttx/net/pkt/pkt_conn.c
@@ -92,7 +92,7 @@ static inline void _uip_semtake(sem_t *sem)
{
/* Take the semaphore (perhaps waiting) */
- while (uip_lockedwait(sem) != 0)
+ while (net_lockedwait(sem) != 0)
{
/* The only case that an error should occur here is if
* the wait was awakened by a signal.
diff --git a/nuttx/net/pkt/pkt_send.c b/nuttx/net/pkt/pkt_send.c
index 768bd403c..7dbbd83e8 100644
--- a/nuttx/net/pkt/pkt_send.c
+++ b/nuttx/net/pkt/pkt_send.c
@@ -206,7 +206,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
size_t len)
{
struct send_s state;
- uip_lock_t save;
+ net_lock_t save;
int err;
int ret = OK;
@@ -229,7 +229,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
* are ready.
*/
- save = uip_lock();
+ save = net_lock();
memset(&state, 0, sizeof(struct send_s));
(void)sem_init(&state.snd_sem, 0, 0); /* Doesn't really fail */
state.snd_sock = psock; /* Socket descriptor to use */
@@ -271,12 +271,12 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
dev->d_txavail(dev);
/* Wait for the send to complete or an error to occure: NOTES: (1)
- * uip_lockedwait will also terminate if a signal is received, (2)
+ * net_lockedwait will also terminate if a signal is received, (2)
* interrupts may be disabled! They will be re-enabled while the
* task sleeps and automatically re-enabled when the task restarts.
*/
- ret = uip_lockedwait(&state.snd_sem);
+ ret = net_lockedwait(&state.snd_sem);
/* Make sure that no further interrupts are processed */
@@ -289,7 +289,7 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
}
sem_destroy(&state.snd_sem);
- uip_unlock(save);
+ net_unlock(save);
/* Set the socket state to idle */
@@ -305,8 +305,8 @@ ssize_t psock_pkt_send(FAR struct socket *psock, FAR const void *buf,
goto errout;
}
- /* If uip_lockedwait failed, then we were probably reawakened by a signal. In
- * this case, uip_lockedwait will have set errno appropriately.
+ /* If net_lockedwait failed, then we were probably reawakened by a signal. In
+ * this case, net_lockedwait will have set errno appropriately.
*/
if (ret < 0)