Skip to content

Refactor device ID calculation in calcDeviceID function#730

Closed
skrashevich wants to merge 1 commit into
AlexxIT:masterfrom
skrashevich:mac-addr-gen-fix
Closed

Refactor device ID calculation in calcDeviceID function#730
skrashevich wants to merge 1 commit into
AlexxIT:masterfrom
skrashevich:mac-addr-gen-fix

Conversation

@skrashevich
Copy link
Copy Markdown
Collaborator

... to generate a MAC address with locally administered and unicast bits set using every second byte from the SHA512 hash of the seed

… a MAC address with locally administered and unicast bits set using every second byte from the SHA512 hash of the seed. Update the unit tests accordingly
@AlexxIT
Copy link
Copy Markdown
Owner

AlexxIT commented Nov 6, 2023

Why we needs this? Just for fun? Any changes to deviceid will break all current homekit setups.

@skrashevich
Copy link
Copy Markdown
Collaborator Author

Any changes to deviceid will break all current homekit setups.

it will not break current setups because of
image

@skrashevich
Copy link
Copy Markdown
Collaborator Author

Why we needs this?

Incorrect mac addresses (for example, from the multicast range) will cause difficult-diagnosable and hard-reproducible errors in some network environments

@AlexxIT
Copy link
Copy Markdown
Owner

AlexxIT commented Nov 6, 2023

This will break setup for all users who not set device_id in yaml or used short device_id.

This is just device_id. I think it shouldn't be correct MAC.

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