Fix some comments.

master
Dario Nieuwenhuis 2021-10-21 01:31:15 +02:00
parent 19d9cd46ca
commit 8922895a8b
1 changed files with 2 additions and 4 deletions

View File

@ -841,9 +841,7 @@ where
socket.dispatch(cx, |response| respond!(IpPacket::Tcp(response)))
}
#[cfg(feature = "socket-dhcpv4")]
Socket::Dhcpv4(ref mut socket) =>
// todo don't unwrap
{
Socket::Dhcpv4(ref mut socket) => {
socket.dispatch(cx, |response| respond!(IpPacket::Dhcpv4(response)))
}
};
@ -1145,7 +1143,7 @@ impl<'a> InterfaceInner<'a> {
payload_len: iphc_repr.buffer_len(),
};
// Currently we assume the next header is a UDP, so we mark all the rest with todo.
// Currently we assume the next header is a UDP, so we ignore everything else.
match iphc_repr.next_header {
SixlowpanNextHeader::Compressed => {
match SixlowpanNhcPacket::dispatch(payload)? {