Skip to content

wolfio: request only IPv4 addresses unless IPv6 support is enabled#6865

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
per-allansson:wolfio-getaddrinfo-hints-a
Oct 13, 2023
Merged

wolfio: request only IPv4 addresses unless IPv6 support is enabled#6865
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
per-allansson:wolfio-getaddrinfo-hints-a

Conversation

@per-allansson
Copy link
Copy Markdown
Contributor

Description

There is no need to request IPv6 addresses if IPv6 is not enabled - the returned addresses are assumed to be IPv4 ones later in the code. In fact the reverse is true as well - which is NOT a correct assumption as getaddrinfo() can return IPv4 addresses since hints.ai_family = AF_UNSPEC. This is outside of the scope here though as we do not enable IPv6 support for wolfIO.

Testing

Manual tests .

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Oct 13, 2023

okay to test

@JacobBarthelmeh JacobBarthelmeh merged commit f247e6b into wolfSSL:master Oct 13, 2023
@per-allansson per-allansson deleted the wolfio-getaddrinfo-hints-a branch January 24, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants