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 2022/12/04 15:52:18 UTC

[GitHub] [nuttx] anchao opened a new pull request, #7777: sim/netdriver: fix build break if enable NET_IPv6 only

anchao opened a new pull request, #7777:
URL: https://github.com/apache/nuttx/pull/7777

   ## Summary
   
   sim/netdriver: fix build break if enable NET_IPv6 only
   
   ```
   In file included from sim/sim_netdriver.c:73:
   sim/sim_netdriver.c: In function ‘netdriver_ifup’: sim/sim_netdriver.c:284:32: error: ‘struct net_driver_s’ has no member named ‘d_ipaddr’; did you mean ‘d_ipv6addr’?
     284 |   sim_netdev_ifup(devidx, dev->d_ipaddr);
         |                                ^~~~~~~~
   sim/sim_internal.h:279:67: note: in definition of macro ‘sim_netdev_ifup’
     279 | #  define sim_netdev_ifup(idx,ifaddr)         sim_tapdev_ifup(idx,ifaddr)
         |
   ```
   
   Signed-off-by: chao an <an...@xiaomi.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
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: commits-unsubscribe@nuttx.apache.org

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


[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #7777: sim/netdriver: fix build break if enable NET_IPv6 only

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #7777:
URL: https://github.com/apache/nuttx/pull/7777#discussion_r1038997618


##########
arch/sim/src/sim/sim_netdriver.c:
##########
@@ -281,7 +281,11 @@ static int netdriver_ifup(struct net_driver_s *dev)
   int devidx = (intptr_t)dev->d_private;
 
   UNUSED(devidx);
+#ifdef CONFIG_NET_IPv4
   sim_netdev_ifup(devidx, dev->d_ipaddr);
+#else /* CONFIG_NET_IPv6 */
+  sim_netdev_ifup(devidx, INADDR_ANY);

Review Comment:
   should we use d_ipv6addr



-- 
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: commits-unsubscribe@nuttx.apache.org

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


[GitHub] [nuttx] xiaoxiang781216 merged pull request #7777: sim/netdriver: fix build break if enable NET_IPv6 only

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #7777:
URL: https://github.com/apache/nuttx/pull/7777


-- 
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: commits-unsubscribe@nuttx.apache.org

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