cpu/stm32/eth: Use luid_get_eui48 to generate local, non group EUI#13232
Merged
miri64 merged 2 commits intoRIOT-OS:masterfrom Jan 30, 2020
Merged
cpu/stm32/eth: Use luid_get_eui48 to generate local, non group EUI#13232miri64 merged 2 commits intoRIOT-OS:masterfrom
miri64 merged 2 commits intoRIOT-OS:masterfrom
Conversation
Member
|
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.
Contributor
Author
|
Done |
benpicco
reviewed
Jan 29, 2020
Member
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
Member
|
@benpicco did you test this? |
Contributor
|
I think it should suffice if @kfessel can confirm that the MAC address is the right way round ( |
Contributor
Author
|
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. |
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.
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.