/smoltcp-0.9.1/fuzz/ |
D | utils.rs | 92 device: D, in parse_middleware_options() 135 let device = PcapWriter::new( in parse_middleware_options() localVariable 136 device, in parse_middleware_options() 145 let device = Tracer::new(device, |_timestamp, _printer| { in parse_middleware_options() localVariable 149 let mut device = FaultInjector::new(device, seed); in parse_middleware_options() localVariable 150 device.set_drop_chance(drop_chance); in parse_middleware_options() 151 device.set_corrupt_chance(corrupt_chance); in parse_middleware_options() 152 device.set_max_packet_size(size_limit); in parse_middleware_options() 153 device.set_max_tx_rate(tx_rate_limit); in parse_middleware_options() 154 device.set_max_rx_rate(rx_rate_limit); in parse_middleware_options() [all …]
|
/smoltcp-0.9.1/examples/ |
D | utils.rs | 154 device: D, in parse_middleware_options() 195 let device = PcapWriter::new( in parse_middleware_options() localVariable 196 device, in parse_middleware_options() 205 let device = Tracer::new(device, |_timestamp, _printer| { in parse_middleware_options() localVariable 210 let mut device = FaultInjector::new(device, seed); in parse_middleware_options() localVariable 211 device.set_drop_chance(drop_chance); in parse_middleware_options() 212 device.set_corrupt_chance(corrupt_chance); in parse_middleware_options() 213 device.set_max_packet_size(size_limit); in parse_middleware_options() 214 device.set_max_tx_rate(tx_rate_limit); in parse_middleware_options() 215 device.set_max_rx_rate(rx_rate_limit); in parse_middleware_options() [all …]
|
D | multicast.rs | 25 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 26 let fd = device.as_raw_fd(); in main() 27 let mut device = in main() localVariable 28 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 33 if device.capabilities().medium == Medium::Ethernet { in main() 37 let mut iface = Interface::new(config, &mut device); in main() 83 &mut device, in main() 91 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | dns.rs | 27 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 28 let fd = device.as_raw_fd(); in main() 29 let mut device = in main() localVariable 30 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 36 if device.capabilities().medium == Medium::Ethernet { in main() 40 let mut iface = Interface::new(config, &mut device); in main() 80 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | dhcp_client.rs | 25 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 26 let fd = device.as_raw_fd(); in main() 27 let mut device = in main() localVariable 28 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 33 if device.capabilities().medium == Medium::Ethernet { in main() 36 let mut iface = Interface::new(config, &mut device); in main() 52 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | client.rs | 23 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 25 let fd = device.as_raw_fd(); in main() 26 let mut device = in main() localVariable 27 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 34 if device.capabilities().medium == Medium::Ethernet { in main() 38 let mut iface = Interface::new(config, &mut device); in main() 74 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | httpclient.rs | 24 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 25 let fd = device.as_raw_fd(); in main() 26 let mut device = in main() localVariable 27 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 34 if device.capabilities().medium == Medium::Ethernet { in main() 38 let mut iface = Interface::new(config, &mut device); in main() 76 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | benchmark.rs | 73 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 74 let fd = device.as_raw_fd(); in main() 75 let mut device = in main() localVariable 76 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 93 if device.capabilities().medium == Medium::Ethernet { in main() 97 let mut iface = Interface::new(config, &mut device); in main() 113 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | sixlowpan.rs | 64 let device = RawSocket::new("wpan1", Medium::Ieee802154).unwrap(); in main() localVariable 65 let fd = device.as_raw_fd(); in main() 66 let mut device = in main() localVariable 67 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 76 let mut iface = Interface::new(config, &mut device); in main() 106 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | ping.rs | 86 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 87 let fd = device.as_raw_fd(); in main() 88 let mut device = in main() localVariable 89 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 90 let device_caps = device.capabilities(); in main() 110 if device.capabilities().medium == Medium::Ethernet { in main() 114 let mut iface = Interface::new(config, &mut device); in main() 151 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | server.rs | 21 let device = utils::parse_tuntap_options(&mut matches); in main() localVariable 22 let fd = device.as_raw_fd(); in main() 23 let mut device = in main() localVariable 24 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 29 if device.capabilities().medium == Medium::Ethernet { in main() 33 let mut iface = Interface::new(config, &mut device); in main() 91 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | sixlowpan_benchmark.rs | 137 let device = RawSocket::new("wpan1", Medium::Ieee802154).unwrap(); in main() localVariable 139 let fd = device.as_raw_fd(); in main() 140 let mut device = in main() localVariable 141 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 156 let mut iface = Interface::new(config, &mut device); in main() 185 iface.poll(timestamp, &mut device, &mut sockets); in main()
|
D | loopback.rs | 71 let device = Loopback::new(Medium::Ethernet); in main() localVariable 74 let mut device = { in main() localVariable 82 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ true) in main() 89 let mut iface = Interface::new(config, &mut device); in main() 126 iface.poll(clock.elapsed(), &mut device, &mut sockets); in main()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | igmp.rs | 27 device: &mut D, in join_multicast_group() 49 let tx_token = device in join_multicast_group() 75 device: &mut D, in leave_multicast_group() 91 let tx_token = device in leave_multicast_group() 118 pub(crate) fn igmp_egress<D>(&mut self, device: &mut D) -> bool in igmp_egress() 130 if let Some(tx_token) = device.transmit(self.inner.now) { in igmp_egress() 160 if let Some(tx_token) = device.transmit(self.inner.now) { in igmp_egress()
|
D | tests.rs | 40 let mut device = Loopback::new(Medium::Ip); in create_ip() localVariable 43 let mut iface = Interface::new(config, &mut device); in create_ip() 59 (iface, SocketSet::new(vec![]), device) in create_ip() 65 let mut device = Loopback::new(Medium::Ethernet); in create_ethernet() localVariable 69 let mut iface = Interface::new(config, &mut device); in create_ethernet() 85 (iface, SocketSet::new(vec![]), device) in create_ethernet() 91 let mut device = Loopback::new(Medium::Ieee802154); in create_ieee802154() localVariable 95 let mut iface = Interface::new(config, &mut device); in create_ieee802154() 107 (iface, SocketSet::new(vec![]), device) in create_ieee802154() 111 fn recv_all(device: &mut Loopback, timestamp: Instant) -> Vec<Vec<u8>> { in recv_all() [all …]
|
D | mod.rs | 471 pub fn new<D>(config: Config, device: &mut D) -> Self in new() 475 let caps = device.capabilities(); in new() 730 device: &mut D, in poll() 746 if self.sixlowpan_egress(device) { in poll() 754 if self.ipv4_egress(device) { in poll() 764 did_something |= self.socket_ingress(device, sockets); in poll() 765 did_something |= self.socket_egress(device, sockets); in poll() 769 did_something |= self.igmp_egress(device); in poll() 832 fn socket_ingress<D>(&mut self, device: &mut D, sockets: &mut SocketSet<'_>) -> bool in socket_ingress() 838 while let Some((rx_token, tx_token)) = device.receive(self.inner.now) { in socket_ingress() [all …]
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | tcp_headers.rs | 117 let device = { localVariable 122 let device = utils::parse_middleware_options( localVariable 128 smoltcp::phy::FuzzInjector::new(device, EmptyFuzzer(), TcpHeaderFuzzer::new(data)) 139 .finalize(&mut device);
|
/smoltcp-0.9.1/ |
D | CHANGELOG.md | 33 - iface: Remove implicit sized bound on device generics (#679)
|