-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to read ipv4-mapped ipv6 to ipv4 if possible #3221
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Majority of our peer addresses are currently ipv4 and this additional step is only used for ipv6 - so I think that is probably fine.
I think this makes sense - but need to think it through a bit more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to work out where these ipv6 addresses are coming from as well.
- outbound peer connection (remote peer accepts both ipv4/ipv6 so we see a mapped version)
- inbound peer connection (peer connects to us, peer configured for both ipv4/ipv6)
- via a broadcast list of peer addresses?
I'm not even sure we would use this code path if it was (1) or (2) as we read the peer address via the underlying tcp connection? At least for one of those, maybe not the other.
Only case that I have seen is 3. This PR do the job in that case. |
So I think we also need similar logic when we compare ip addrs when looking to see if we are already connected to a peer. |
Related - #3208. |
If we can get to point where we are confident this improves the overall situation regarding ipv4-mapped addresses on the network then we should aim to get this merged in for a potential |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this in combination with #3225 is a good idea.
👍
A potential additional operation during read some maybe not the best idea.