Skip to content

Use different flags for getting ipv4 and ipv6 original dst address#3196

Merged
Razz4780 merged 1 commit intometalbear-co:mainfrom
Razz4780:fix-so-original-dst-ipv6
Mar 26, 2025
Merged

Use different flags for getting ipv4 and ipv6 original dst address#3196
Razz4780 merged 1 commit intometalbear-co:mainfrom
Razz4780:fix-so-original-dst-ipv6

Conversation

@Razz4780
Copy link
Contributor

@Razz4780 Razz4780 commented Mar 21, 2025

I don't know if this actually fixes anything or not. Haven't tested yet, just noticed this thing when working on other stuff.

This might be related to #3143 ? - EDIT: not related, there was no IPv6 listener in that scenario
See this as well.

EDIT: Ok, found some time to confirm. I tested manually with ip6tables redirects. Using SO_ORIGINAL_DST always results in ENOENT, the IPv6-specific flag correctly retrieves the original destination.

@Razz4780 Razz4780 force-pushed the fix-so-original-dst-ipv6 branch from ee0a453 to d20bb3d Compare March 26, 2025 08:41
@Razz4780 Razz4780 marked this pull request as ready for review March 26, 2025 08:41
@Razz4780 Razz4780 added this pull request to the merge queue Mar 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 26, 2025
@Razz4780 Razz4780 added this pull request to the merge queue Mar 26, 2025
Merged via the queue into metalbear-co:main with commit d2be2c9 Mar 26, 2025
28 of 33 checks passed
@Razz4780 Razz4780 deleted the fix-so-original-dst-ipv6 branch March 26, 2025 11:26
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.

2 participants