populate medium
in DriverAdapter struct in IGMP code
This commit is contained in:
parent
e3be0b957a
commit
be17e1b363
@ -616,9 +616,11 @@ impl<D: Driver> Stack<D> {
|
|||||||
let addr = addr.into();
|
let addr = addr.into();
|
||||||
|
|
||||||
self.with_mut(|s, i| {
|
self.with_mut(|s, i| {
|
||||||
|
let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address());
|
||||||
let mut smoldev = DriverAdapter {
|
let mut smoldev = DriverAdapter {
|
||||||
cx: Some(cx),
|
cx: Some(cx),
|
||||||
inner: &mut i.device,
|
inner: &mut i.device,
|
||||||
|
medium,
|
||||||
};
|
};
|
||||||
|
|
||||||
match s
|
match s
|
||||||
@ -653,9 +655,11 @@ impl<D: Driver> Stack<D> {
|
|||||||
let addr = addr.into();
|
let addr = addr.into();
|
||||||
|
|
||||||
self.with_mut(|s, i| {
|
self.with_mut(|s, i| {
|
||||||
|
let (_hardware_addr, medium) = to_smoltcp_hardware_address(i.device.hardware_address());
|
||||||
let mut smoldev = DriverAdapter {
|
let mut smoldev = DriverAdapter {
|
||||||
cx: Some(cx),
|
cx: Some(cx),
|
||||||
inner: &mut i.device,
|
inner: &mut i.device,
|
||||||
|
medium,
|
||||||
};
|
};
|
||||||
|
|
||||||
match s
|
match s
|
||||||
|
Loading…
Reference in New Issue
Block a user