浏览代码

ignore checksum during loopback

skpupil 1 年之前
父节点
当前提交
58f1f6fa28
共有 1 个文件被更改,包括 2 次插入1 次删除
  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()
         }
     }