Skip to content

Commit

Permalink
Merge pull request smoltcp-rs#919 from skpupil/dev-checksum
Browse files Browse the repository at this point in the history
ignore checksum during loopback
  • Loading branch information
Dirbaio authored Apr 10, 2024
2 parents 114939a + 58f1f6f commit f9c850b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phy/loopback.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -33,6 +33,7 @@ impl Device for Loopback {
DeviceCapabilities {
max_transmission_unit: 65535,
medium: self.medium,
checksum: ChecksumCapabilities::ignored(),
..DeviceCapabilities::default()
}
}
Expand Down

0 comments on commit f9c850b

Please sign in to comment.