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/08/03 09:27:12 UTC

[GitHub] [incubator-nuttx] github-liyi opened a new pull request, #6770: delay creating DNS bind socket

github-liyi opened a new pull request, #6770:
URL: https://github.com/apache/incubator-nuttx/pull/6770

   ## Summary
   dns_bind create a socket with fixed domain PF_INET, that will be a  trap!
   When IPv6 is enabled, and we may try to get domain name resolution  from a IPv6 DNS server.
   In connect function, the input IPv6 address will be refused because address's family(AF_INET6) is not matched with
   the socket's domain(PF_INET)
   So we add parameter family to dns_bind function and delay it's call to where it knows which type of socket it will create.
   Now it is called in dns_query_callback
   
   ## Impact
   original DNS initialization logic has been changed, and DNS socket will be created in a later time.
   
   ## Testing
   Testing cases has been done with nuttx sim:nsh program
   Domain name resolution service is tested using Bind software
   and DNS service is OK In both IPv4 and IPv6 DNS server


-- 
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] [incubator-nuttx] anchao commented on pull request #6770: delay creating DNS bind socket

Posted by GitBox <gi...@apache.org>.
anchao commented on PR #6770:
URL: https://github.com/apache/incubator-nuttx/pull/6770#issuecomment-1203719010

   Please revert the merge commit:
   [Merge branch 'apache:master' into master](https://github.com/apache/incubator-nuttx/pull/6770/commits/bb6667db725a273abd122ae4db1908dcc5247d6a)


-- 
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] [incubator-nuttx] xiaoxiang781216 merged pull request #6770: delay creating DNS bind socket

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


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