From d76ed2cbc5d9f5a2495bf8c6f288bd50fcd208af Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 22 Nov 2014 09:08:06 -0600 Subject: [PATCH] Fix UDP routing error in last commit --- net/udp/udp_conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/udp/udp_conn.c b/net/udp/udp_conn.c index e54b0a48fc..8c5ac8b0a1 100644 --- a/net/udp/udp_conn.c +++ b/net/udp/udp_conn.c @@ -374,8 +374,8 @@ FAR struct udp_conn_s *udp_active(FAR struct udp_iphdr_s *buf) if (conn->lport != 0 && buf->destport == conn->lport && (conn->rport == 0 || buf->srcport == conn->rport) && #ifdef CONFIG_NETDEV_MULTINIC - (net_ipaddr_hdrcmp(buf->destipaddr, &g_allzeroaddr) || - net_ipaddr_hdrcmp(buf->destipaddr, &g_alloneaddr) || + (net_ipaddr_cmp(conn->lipaddr, g_allzeroaddr) || + net_ipaddr_cmp(conn->lipaddr, g_alloneaddr) || net_ipaddr_hdrcmp(buf->destipaddr, &conn->lipaddr)) && #endif (net_ipaddr_cmp(conn->ripaddr, g_allzeroaddr) ||