anchao commented on code in PR #12212:
URL: https://github.com/apache/nuttx/pull/12212#discussion_r1577181297


##########
net/udp/udp_input.c:
##########
@@ -243,7 +290,14 @@ static int udp_input(FAR struct net_driver_s *dev, 
unsigned int iplen)
         {
           /* We'll only get multiple conn when we support SO_REUSEADDR */
 
-#ifdef CONFIG_NET_SOCKOPTS
+#if defined(CONFIG_NET_SOCKOPTS) && defined(CONFIG_NET_BROADCAST)
+          /* Check if the destination address is a broad/multicast address */
+
+          if (!udp_is_broadcast(dev))
+            {
+              goto unicast;

Review Comment:
   remove the goto unicast and move line 249-272 into if block



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to