Skip to content

feat: expose interface index for an address#51

Draft
elenaf9 wants to merge 2 commits intolibp2p:masterfrom
elenaf9:interface-index
Draft

feat: expose interface index for an address#51
elenaf9 wants to merge 2 commits intolibp2p:masterfrom
elenaf9:interface-index

Conversation

@elenaf9
Copy link
Copy Markdown
Member

@elenaf9 elenaf9 commented Apr 30, 2025

Add function IfWatcher::get_if_index on all platforms to query the interface index for a known address.

The index is needed for libp2p/rust-libp2p#5783 when joining an ipv6 multicast group in mDNS with UdpSocket::join_multicast_v6.

Need to do some testing within rust-libp2p before merging this.

Copy link
Copy Markdown
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

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

Looks good to me Elena, thanks for looking into this!
as you referred we probably should test this on the mdns protocol before merging

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