Skip to content
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

firmware/sys/uniqueid: get_uid_seed and net_tools set_ipv6_by_uid #353

Merged
merged 2 commits into from
Sep 24, 2022

Conversation

CW-75
Copy link
Collaborator

@CW-75 CW-75 commented Sep 22, 2022

Contribution description

The uniqueid module was modified to only generate a random or statically seed (Whatever mode that is required). You could get a value from the cpuid, the seed requires to know the length of the passed storage value (len), if the length is biggert than CPUID_LEN in bytes, The rest of the remaining bytes will be filled with random values.
To net_tools set_ipv6_by_uid only will be used is module uniqueid is added. you always need to add the ipv6_header that is pre-defined by the prefix length. e.g prefix will be used "/56" the address "2001:db8:0021:15xx:xxxx:xxxxx:xxxxx:xxxx", each "x" refers to a value that can be altered by the uid_seed.

Testing procedure

make -C tests/system_uniqueid flash term

Issues/PRs references

@CW-75 CW-75 added the Status: WIP This PR is a work in progress label Sep 22, 2022
@CW-75 CW-75 added this to the 0.22.12-RC2 milestone Sep 22, 2022
@CW-75 CW-75 requested a review from luisan00 September 23, 2022 00:44
@CW-75 CW-75 changed the title [WIP] firmware/sys/uniqueid: gey_uid_seed and net_tools set_ipv6_by_uid firmware/sys/uniqueid: gey_uid_seed and net_tools set_ipv6_by_uid Sep 23, 2022
@CW-75 CW-75 removed the Status: WIP This PR is a work in progress label Sep 23, 2022
@CW-75 CW-75 changed the title firmware/sys/uniqueid: gey_uid_seed and net_tools set_ipv6_by_uid firmware/sys/uniqueid: get_uid_seed and net_tools set_ipv6_by_uid Sep 23, 2022
@CW-75 CW-75 force-pushed the feature/uniqueid branch 2 times, most recently from ba38681 to 3a45ea0 Compare September 24, 2022 06:30
@CW-75 CW-75 merged commit 476e0c1 into Mesh4all:main Sep 24, 2022
@CW-75 CW-75 deleted the feature/uniqueid branch September 24, 2022 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants