summaryrefslogtreecommitdiff
path: root/nuttx/net/uip/uip-udpcallback.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-01 13:59:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-01 13:59:54 +0000
commit17edc87d5eadbdcd81add3cd4ff8941fee253e14 (patch)
treec55719a909501c0098b9f96ec08e40cb2fe97729 /nuttx/net/uip/uip-udpcallback.c
parent50041ff73393316f3c4da440844279d49136a9a2 (diff)
downloadpx4-nuttx-17edc87d5eadbdcd81add3cd4ff8941fee253e14.tar.gz
px4-nuttx-17edc87d5eadbdcd81add3cd4ff8941fee253e14.tar.bz2
px4-nuttx-17edc87d5eadbdcd81add3cd4ff8941fee253e14.zip
Add uIP support more multi-threaded socket access
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@858 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip/uip-udpcallback.c')
-rw-r--r--nuttx/net/uip/uip-udpcallback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/uip/uip-udpcallback.c b/nuttx/net/uip/uip-udpcallback.c
index ae5187913..6c7fecef3 100644
--- a/nuttx/net/uip/uip-udpcallback.c
+++ b/nuttx/net/uip/uip-udpcallback.c
@@ -1,7 +1,7 @@
/****************************************************************************
* net/uip/uip-udpcallback.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
*
@@ -74,9 +74,9 @@
****************************************************************************/
void uip_udpcallback(struct uip_driver_s *dev, struct uip_udp_conn *conn,
- uint8 flags)
+ uint16 flags)
{
- nvdbg("flags: %02x\n", flags);
+ nvdbg("flags: %04x\n", flags);
/* Some sanity checking */
@@ -84,7 +84,7 @@ void uip_udpcallback(struct uip_driver_s *dev, struct uip_udp_conn *conn,
{
/* Perform the callback */
- conn->event(dev, conn, flags);
+ flags = uip_callbackexecute(dev, conn, flags, conn->list);
}
}