Skip to content

Commit

Permalink
Fix some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Oct 20, 2021
1 parent aeca423 commit 5e7e75a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/iface/interface.rs
Expand Up @@ -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)))
}
};
Expand Down Expand Up @@ -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)? {
Expand Down

0 comments on commit 5e7e75a

Please sign in to comment.