You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/28 20:26:24 UTC

[GitHub] [incubator-nuttx] saramonteiro commented on a change in pull request #3624: net/: Add missing packet filtering checks

saramonteiro commented on a change in pull request #3624:
URL: https://github.com/apache/incubator-nuttx/pull/3624#discussion_r622513319



##########
File path: net/devif/ipv4_input.c
##########
@@ -297,7 +297,14 @@ int ipv4_input(FAR struct net_driver_s *dev)
             }
           else
 #endif
-          if (ipv4->proto != IP_PROTO_UDP)
+#ifdef CONFIG_NET_UDP_BINDTODEVICE
+          /* If the UDP protocol specific socket option UDP_BINDTODEVICE
+           * is selected, then all we must forward all UDP packets to the

Review comment:
       ```suggestion
              * is selected, then we must forward all UDP packets to the
   ```




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org