Skip to content

(Closes #285) Removed assumption that interface indexes must have IPv6 addresses. #286

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

Closed
wants to merge 17 commits into from

Conversation

VishSwami
Copy link

In init, not all addresses assigned to interface indices were being checked to determine ip_version. In interface_index_to_ip6_address, Runtime error is thrown if there is no IPv6 address, even if v4 address is present.

…loses python-zeroconf#285)

In __init__, not all addresses assigned to interface indicies were being checked to determine ip_version.
In interface_index_to_ip6_address, Runtime error is thrown if there is no IPv6 address, even if v4 address is present.
@coveralls
Copy link

coveralls commented Jul 17, 2020

Coverage Status

Coverage increased (+0.3%) to 92.952% when pulling f6069e4 on VishSwami:master into 19e33a6 on jstasiak:master.

VishSwami added 14 commits July 16, 2020 19:24
Returning ("", 0, 0) instead of None to maintain typing.
Uncertain if this will cover case where interface index of v4_only device is provided.
Using ifaddr.get_adapters to get the index and pass to zeroconf's init.
adapters object given by ifaddr does not support index. It is now converted to a list prior to index access.
Returning ("", 0, 0) instead of None to maintain typing.

Added test to check v4_only case

Uncertain if this will cover case where interface index of v4_only device is provided.

Added test for interface indices instead of address

Using ifaddr.get_adapters to get the index and pass to zeroconf's init.

Fixed index error in test_interface_index

adapters object given by ifaddr does not support index. It is now converted to a list prior to index access.

Removed Test pulling from ifaddr adapters, causes issues with protocol

Removed commented out breakpoint statement

Removed extraneous import of ifaddr in tests
@bdraco bdraco linked an issue May 28, 2021 that may be closed by this pull request
@bdraco
Copy link
Member

bdraco commented Jun 15, 2021

@VishSwami Can you rebase this on upstream/master?

@bdraco
Copy link
Member

bdraco commented Apr 2, 2023

I'm closing this as its gone stale. Please open a fresh PR if you are still interested in pursuing this change.

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.

Failure when providing interface indexes that do not support IPv6.
3 participants