Use `net_debug` and drop instead of `todo!`
This commit is contained in:
parent
1154390307
commit
b068a856e5
|
@ -1131,8 +1131,9 @@ impl<'a> InterfaceInner<'a> {
|
||||||
match iphc_repr.next_header {
|
match iphc_repr.next_header {
|
||||||
SixlowpanNextHeader::Compressed => {
|
SixlowpanNextHeader::Compressed => {
|
||||||
match SixlowpanNhcPacket::dispatch(payload)? {
|
match SixlowpanNhcPacket::dispatch(payload)? {
|
||||||
SixlowpanNhcPacket::ExtensionHeader(ext_header) => {
|
SixlowpanNhcPacket::ExtensionHeader(_) => {
|
||||||
todo!("{:?}", ext_header)
|
net_debug!("Extension headers are currently not supported for 6LoWPAN");
|
||||||
|
Ok(None)
|
||||||
}
|
}
|
||||||
SixlowpanNhcPacket::UdpHeader(udp_packet) => {
|
SixlowpanNhcPacket::UdpHeader(udp_packet) => {
|
||||||
// Handle the UDP
|
// Handle the UDP
|
||||||
|
@ -1184,7 +1185,10 @@ impl<'a> InterfaceInner<'a> {
|
||||||
IpProtocol::Icmpv6 => {
|
IpProtocol::Icmpv6 => {
|
||||||
self.process_icmpv6(cx, sockets, ip_repr, iphc_packet.payload())
|
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)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue