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

Implement RFC 4361 #49

Open
leshow opened this issue Dec 21, 2022 · 0 comments
Open

Implement RFC 4361 #49

leshow opened this issue Dec 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@leshow
Copy link
Collaborator

leshow commented Dec 21, 2022

https://www.rfc-editor.org/rfc/rfc4361

allows a v6-style DUID to be encoded in the client id option (opt 61). We should probably change the ClientId option so that it is easier to pull out the DUID specified here: https://www.rfc-editor.org/rfc/rfc4361#section-6.1

maybe:

enum ClientId {
    Duid(Duid),
    Id(Id)
}
struct Duid {
   iaid: [u8; 4],
   duid: Vec<u8>
}
struct Id {
   id: Vec<u8>
}

With some convenience methods on ClientId to pull out either id or duid if a method is called.

@leshow leshow added the enhancement New feature or request label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant