Use `net_debug` and drop instead of `todo!`

master
Thibaut Vandervelden 2021-10-11 09:47:41 +02:00 committed by Dario Nieuwenhuis
parent 1154390307
commit b068a856e5
1 changed files with 7 additions and 3 deletions

View File

@ -1131,8 +1131,9 @@ impl<'a> InterfaceInner<'a> {
match iphc_repr.next_header {
SixlowpanNextHeader::Compressed => {
match SixlowpanNhcPacket::dispatch(payload)? {
SixlowpanNhcPacket::ExtensionHeader(ext_header) => {
todo!("{:?}", ext_header)
SixlowpanNhcPacket::ExtensionHeader(_) => {
net_debug!("Extension headers are currently not supported for 6LoWPAN");
Ok(None)
}
SixlowpanNhcPacket::UdpHeader(udp_packet) => {
// Handle the UDP
@ -1184,7 +1185,10 @@ impl<'a> InterfaceInner<'a> {
IpProtocol::Icmpv6 => {
self.process_icmpv6(cx, sockets, ip_repr, iphc_packet.payload())
}
hdr => todo!("{:?}", hdr),
_ => {
net_debug!("Headers other than ICMPv6 and compressed headers are currently not supported for 6LoWPAN");
Ok(None)
}
},
}
}