diff options
Diffstat (limited to 'examples/std')
| -rw-r--r-- | examples/std/src/tuntap.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/std/src/tuntap.rs b/examples/std/src/tuntap.rs index 53d3afd5c..a32099404 100644 --- a/examples/std/src/tuntap.rs +++ b/examples/std/src/tuntap.rs | |||
| @@ -50,7 +50,6 @@ fn ifreq_ioctl( | |||
| 50 | #[derive(Debug)] | 50 | #[derive(Debug)] |
| 51 | pub struct TunTap { | 51 | pub struct TunTap { |
| 52 | fd: libc::c_int, | 52 | fd: libc::c_int, |
| 53 | ifreq: ifreq, | ||
| 54 | mtu: usize, | 53 | mtu: usize, |
| 55 | } | 54 | } |
| 56 | 55 | ||
| @@ -88,7 +87,7 @@ impl TunTap { | |||
| 88 | // smoltcp counts the entire Ethernet packet in the MTU, so add the Ethernet header size to it. | 87 | // smoltcp counts the entire Ethernet packet in the MTU, so add the Ethernet header size to it. |
| 89 | let mtu = ip_mtu + EthernetFrame::<&[u8]>::header_len(); | 88 | let mtu = ip_mtu + EthernetFrame::<&[u8]>::header_len(); |
| 90 | 89 | ||
| 91 | Ok(TunTap { fd, mtu, ifreq }) | 90 | Ok(TunTap { fd, mtu }) |
| 92 | } | 91 | } |
| 93 | } | 92 | } |
| 94 | } | 93 | } |
