summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-06 16:45:28 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-06 16:45:28 +0000
commitd45cf71326cb4b98e5b0a8014eef39d931afde70 (patch)
treef0aca7c70ddc59925e809aebb9e05e0c4dd74fd2
parent77598342d00348e0b97f05b2c6735bdf8dde8e33 (diff)
downloadpx4-nuttx-d45cf71326cb4b98e5b0a8014eef39d931afde70.tar.gz
px4-nuttx-d45cf71326cb4b98e5b0a8014eef39d931afde70.tar.bz2
px4-nuttx-d45cf71326cb4b98e5b0a8014eef39d931afde70.zip
Fix recvfrom port bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@886 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/ChangeLog2
-rw-r--r--nuttx/Documentation/NuttX.html2
-rw-r--r--nuttx/net/recvfrom.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 0fb5348d7..55b263e1f 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -453,4 +453,6 @@
* NSH: Add get and put commands to support TFTP get and put operations.
* NSH: Added a mkrd command that will create a RAMDISK that can be formatted
and mounted.
+ * Corrected a critical bug that prevent recvfrom from receiving packets from
+ any remote UDP port.
diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html
index 59f2afdf9..4674077cc 100644
--- a/nuttx/Documentation/NuttX.html
+++ b/nuttx/Documentation/NuttX.html
@@ -1080,6 +1080,8 @@ nuttx-0.3.14 2008-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
* NSH: Add get and put commands to support TFTP get and put operations.
* NSH: Added a mkrd command that will create a RAMDISK that can be formatted
and mounted.
+ * Corrected a critical bug that prevent recvfrom from receiving packets from
+ any remote UDP port.
pascal-0.1.3 2008-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
diff --git a/nuttx/net/recvfrom.c b/nuttx/net/recvfrom.c
index 12f50f8c3..343471124 100644
--- a/nuttx/net/recvfrom.c
+++ b/nuttx/net/recvfrom.c
@@ -780,7 +780,7 @@ static ssize_t udp_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
/* Setup the UDP remote connection */
- ret = uip_udpconnect(conn, infrom);
+ ret = uip_udpconnect(conn, NULL);
if (ret < 0)
{
irqrestore(save);