yamt commented on issue #16693: URL: https://github.com/apache/nuttx/issues/16693#issuecomment-3050960755
> standard-wise, the nuttx behavior might or might be allowed. (i haven't checked.) standard-wise, i couldn't find anything about ai_protocol in susv4-2018 except the following text: The fields ai_family, ai_socktype, and ai_protocol shall be usable as the arguments to the socket() function to create a socket suitable for use with the returned address. because ai_protocol is usually merely used to feed socket() and socket() usually accepts 0, it's probably standard-wise ok for getaddrinfo to return ai_protocol=0. -- 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 For queries about this service, please contact Infrastructure at: us...@infra.apache.org