-
Notifications
You must be signed in to change notification settings - Fork 428
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
DHCP support #63
Comments
Definitely.
I'm still thinking about the best way to implement protocols like DHCP. In a nutshell, I'd like them to be runnable on top of smoltcp, but also on top of regular |
OK here's the plan.
trait UdpIoAdapter {
type Error;
// still not sure about the signature of `send`
fn send(&mut self, size: usize, endpoint: IpEndpoint) -> Result<&mut [u8], Self::Error>;
fn recv(&mut self) -> Result<(&[u8], IpEndpoint), Self::Error>
}
I think you can start with implementing (1), and then I'll look at how (2) works best. The logic of (3) is mostly glue so it's best done last. |
Ok, I'm starting to work on (1). |
@whitequark @sbourdeauducq when do you anticipate DHCP support being implemented? |
@dhslichter No ETA currently. |
Looks good to me. Right now |
This was implemented in #186, so I think we can close this issue. |
Is DHCP support planned? And is there a way to implement DHCP on top of smoltcp, i.e. without writing own UDP packet construction code?
The text was updated successfully, but these errors were encountered: