yamt opened a new issue, #16693:
URL: https://github.com/apache/nuttx/issues/16693

   ### Description / Steps to reproduce the issue
   
   consider using getaddrinfo with
   hints.ai_family == AF_INET
   hints.ai_socktype == SOCK_STREAM
   hints.ai_protocol == 0
   
   i expect the result contains ai_protocol == IPPROTO_TCP.
   but nuttx seems to leave it to 0.
   
   standard-wise, the nuttx behavior might or might be allowed. (i haven't 
checked.)
   
   anyway, i guess it's better to follow the de-fact behavior (kame etc) for 
compatibility for applications.
   for example, wamr seems to have [the 
assumption](https://github.com/bytecodealliance/wasm-micro-runtime/blob/d3b0b5c066e21ba3568448ad42e0b920e67d16ba/core/shared/platform/common/posix/posix_socket.c#L376-L377).
   
   
   ### On which OS does this issue occur?
   
   [OS: Mac]
   
   ### What is the version of your OS?
   
   macOS 15.5
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: simulator]
   
   ### Issue Area
   
   [Area: Networking]
   
   ### Host information
   
   _No response_
   
   ### Verification
   
   - [x] I have verified before submitting the report.


-- 
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-unsubscr...@nuttx.apache.org.apache.org

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

Reply via email to