-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/stm32/eth: Use luid_get_eui48 to generate local, non group EUI #13232
Conversation
Can you adapt the commit message according to the current title, please? I was very confused what a CPU is doing with a EUI-48 at first. |
luid_get may generate non compliant EUI (MAC-address) luid_get_eui48 fixes that.
Done |
As long as it's clear what component is changed its fine :-) |
changed type of hwaddr to eui48 moved hwaddr declaration where it is needed
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.
Code looks good, can easily swapped should #12641 get merged.
@benpicco did you test this? |
I think it should suffice if @kfessel can confirm that the MAC address is the right way round ( |
Every bit but the group bit, which was cleard, stayed the same, so this bit is at the right place. I ping fe80::28xx:xxff:fexx:xxxx instead of fe80::29xx:xxff:fexx:xxxx now. So it is working. |
luid_get may generate non compliant EUI (MAC-address) luid_get_eui48
fixes that.
I had MAC been generated that was marked as group (multicast) so Wireshark complained, i looked into it found that there is allready a function in Riot to generate appropriate EUI, and ei changed and testet.
It worked (no more complain by wireshark) and the interface is still answering echo requests.