Browse Source

Merge pull request #919 from skpupil/dev-checksum

ignore checksum during loopback
Dario Nieuwenhuis 11 months ago
parent
commit
f9c850b95a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/phy/loopback.rs

+ 2 - 1
src/phy/loopback.rs

@@ -1,7 +1,7 @@
 use alloc::collections::VecDeque;
 use alloc::vec::Vec;
 
-use crate::phy::{self, Device, DeviceCapabilities, Medium};
+use crate::phy::{self, ChecksumCapabilities, Device, DeviceCapabilities, Medium};
 use crate::time::Instant;
 
 /// A loopback device.
@@ -33,6 +33,7 @@ impl Device for Loopback {
         DeviceCapabilities {
             max_transmission_unit: 65535,
             medium: self.medium,
+            checksum: ChecksumCapabilities::ignored(),
             ..DeviceCapabilities::default()
         }
     }