From db7ba1ab1860314ee3fa9ac0cd7809fc4372e017 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 6 Sep 2008 16:45:28 +0000 Subject: [PATCH] Fix recvfrom port bug git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@886 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/ChangeLog | 2 ++ nuttx/Documentation/NuttX.html | 2 ++ nuttx/net/recvfrom.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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 <spudmonkey@racsa.co.cr> * 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 <spudmonkey@racsa.co.cr> 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);