Skip to content

Conversation

@shukitchan
Copy link
Contributor

This pull request makes a small but important fix to the print_port function in plugins/experimental/wasm/ats_context.cc. The change improves how the function determines the IP address family before extracting the port number.

  • The condition for handling IPv6 addresses now explicitly checks for AF_INET6 instead of using a generic else, ensuring correct behavior when the address family is not IPv4 or IPv6.Wasm plugin: Handle AF_INET6 case for port extraction

Wasm plugin: Handle AF_INET6 case for port extraction
@shukitchan shukitchan added this to the 10.2.0 milestone Nov 4, 2025
@shukitchan shukitchan requested a review from Copilot November 4, 2025 01:56
@shukitchan shukitchan self-assigned this Nov 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an explicit IPv6 family check in the print_port function to make the address family handling more explicit and safer.

  • Changes the else clause to else if (ip->sa_family == AF_INET6) in the print_port function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

shukitchan and others added 2 commits November 3, 2025 18:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add debug logging for unsupported address families.
@shukitchan shukitchan requested a review from Copilot November 4, 2025 02:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@shukitchan shukitchan merged commit a1e1ffe into apache:master Nov 4, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants