Repository navigation
bugfix: remove duplicated address record for IPv6 on a wrong interface - #373
Merged
Merged
Conversation
keepsimple1
marked this pull request as draft
July 22, 2025 05:05
keepsimple1
marked this pull request as ready for review
July 23, 2025 02:57
This is possible as we moved to use socket-pktinfo crate.
hrzlgnm
added a commit
to hrzlgnm/mdns-sd
that referenced
this pull request
Jul 31, 2025
This became obsolete with keepsimple1#373, as we now only use at max one IPv4 and at max one IPv6 address per interface.
keepsimple1
pushed a commit
that referenced
this pull request
Aug 1, 2025
This became obsolete with #373, as we now only use at max one IPv4 and at max one IPv6 address per interface.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is to fix issue #372 .
Callbind_device_by_index_v6to make sure a socket only receives packets arrived at the specific interface. Currently only for non-Windows platforms.update: use
socket-pktinfo(with my patch) to receive UDP packets with control info, including if_index, src and dst addr. Now we can get rid of the per interface socket, and use a common IPv4 socket and IPv6 socket for all interfaces. This helps to fix the "duplicated" incoming packets address records issue.