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 2020/12/15 17:08:37 UTC

[GitHub] [incubator-nuttx-apps] juniskane opened a new pull request #525: examples/ftpc: proper dual-stack support, also fix getopt re-entrancy issues

juniskane opened a new pull request #525:
URL: https://github.com/apache/incubator-nuttx-apps/pull/525


   ## Summary
   Allow -4 and -6 command line options to select IPv4 or IPv6 on dual-stack devices, instead of always defaulting to IPv6
   Uses `getaddrinfo()` so can do host name lookups, option -n to disable (also works without CONFIG_LIBC_NETDB for IP addr only, like before)
   `getopt()` always called in a loop so no need for non-portable `optind = -1` construction
   Added missing `htons()` for port number
   
   ## Impact
   Command line syntax slightly changed, syntax `host:port` changed to have `port` as separate argument (easier for numeric IPv6)
   ## Testing
   
   


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



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #525: examples/ftpc: proper dual-stack support, also fix getopt re-entrancy issues

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #525:
URL: https://github.com/apache/incubator-nuttx-apps/pull/525


   


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