Formatting. NFC.
This commit is contained in:
parent
e4fb2b2997
commit
72481c2661
|
@ -353,8 +353,8 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
|
|||
}
|
||||
}
|
||||
|
||||
fn process_icmpv4<'frame>(&self, ipv4_repr: Ipv4Repr,
|
||||
ip_payload: &'frame [u8]) -> Result<Packet<'frame>> {
|
||||
fn process_icmpv4<'frame>(&self, ipv4_repr: Ipv4Repr, ip_payload: &'frame [u8]) ->
|
||||
Result<Packet<'frame>> {
|
||||
let icmp_packet = Icmpv4Packet::new_checked(ip_payload)?;
|
||||
let checksum_caps = self.device.capabilities().checksum;
|
||||
let icmp_repr = Icmpv4Repr::parse(&icmp_packet, &checksum_caps)?;
|
||||
|
|
Loading…
Reference in New Issue