Skip to content

Change AddrGenMode into enum #149

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Toorero
Copy link

@Toorero Toorero commented Mar 16, 2025

This should fix #145

@Toorero Toorero force-pushed the feature/addr_gen_mode_enum branch 2 times, most recently from 2eb3a71 to a8f9849 Compare March 16, 2025 23:32
match self {
Self::Eui64 => write!(f, "eui64"),
Self::None => write!(f, "none"),
Self::StablePrivacy => write!(f, "stable_secret"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stable_privacy?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was weirdly confused too but this is how it is implemented in iproute2 [1], [2]. I'm happy to change this though if you feel the need. Alternatively I could attach one of the links as a code comment to make thinks more clear.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if "stable_secret" is used in iproute, I am more in favor of "stable_privacy". But if @cathay4t agrees on "stable_secret" that is 2 vs 1, so ignore the comment.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your call @cathay4t. I just outlined why I choose stable_secret. I'm fine either way.

@cathay4t cathay4t added the Wait_Submitter PR reviewed with change requests label Mar 23, 2025
Signed-off-by: Julius Rüberg <[email protected]>
@Toorero Toorero force-pushed the feature/addr_gen_mode_enum branch from a8f9849 to 8d47556 Compare March 26, 2025 23:47
@Toorero
Copy link
Author

Toorero commented Mar 26, 2025

Changes force-pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wait_Submitter PR reviewed with change requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change AfSpecInet6::AddrGenMode(u8) to enum.
3 participants