/smoltcp-0.9.1/examples/ |
D | utils.rs | 79 Ok(matches) => { in parse_options() 80 if matches.opt_present("h") || matches.free.len() != free.len() { in parse_options() 87 process::exit((matches.free.len() != free.len()) as _); in parse_options() 89 matches in parse_options() 100 pub fn parse_tuntap_options(matches: &mut Matches) -> TunTapInterface { in parse_tuntap_options() 101 let tun = matches.opt_str("tun"); in parse_tuntap_options() 102 let tap = matches.opt_str("tap"); in parse_tuntap_options() 153 matches: &mut Matches, in parse_middleware_options() 160 let drop_chance = matches in parse_middleware_options() 164 let corrupt_chance = matches in parse_middleware_options() [all …]
|
D | client.rs | 22 let mut matches = utils::parse_options(&opts, free); in main() localVariable 23 let device = utils::parse_tuntap_options(&mut matches); in main() 27 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 28 let address = IpAddress::from_str(&matches.free[0]).expect("invalid address format"); in main() 29 let port = u16::from_str(&matches.free[1]).expect("invalid port format"); in main()
|
D | httpclient.rs | 23 let mut matches = utils::parse_options(&opts, free); in main() localVariable 24 let device = utils::parse_tuntap_options(&mut matches); in main() 27 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 28 let address = IpAddress::from_str(&matches.free[0]).expect("invalid address format"); in main() 29 let url = Url::parse(&matches.free[1]).expect("invalid url format"); in main()
|
D | ping.rs | 85 let mut matches = utils::parse_options(&opts, free); in main() localVariable 86 let device = utils::parse_tuntap_options(&mut matches); in main() 89 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 91 let remote_addr = IpAddress::from_str(&matches.free[0]).expect("invalid address format"); in main() 92 let count = matches in main() 96 let interval = matches in main() 101 matches in main()
|
D | dns.rs | 26 let mut matches = utils::parse_options(&opts, free); in main() localVariable 27 let device = utils::parse_tuntap_options(&mut matches); in main() 30 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 31 let name = &matches.free[0]; in main()
|
D | benchmark.rs | 72 let mut matches = utils::parse_options(&opts, free); in main() localVariable 73 let device = utils::parse_tuntap_options(&mut matches); in main() 76 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 77 let mode = match matches.free[0].as_ref() { in main()
|
D | dhcp_client.rs | 24 let mut matches = utils::parse_options(&opts, free); in main() localVariable 25 let device = utils::parse_tuntap_options(&mut matches); in main() 28 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main()
|
D | multicast.rs | 24 let mut matches = utils::parse_options(&opts, free); in main() localVariable 25 let device = utils::parse_tuntap_options(&mut matches); in main() 28 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main()
|
D | sixlowpan_benchmark.rs | 135 let mut matches = utils::parse_options(&opts, free); in main() localVariable 141 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main() 143 let mode = match matches.free[0].as_ref() { in main()
|
D | server.rs | 20 let mut matches = utils::parse_options(&opts, free); in main() localVariable 21 let device = utils::parse_tuntap_options(&mut matches); in main() 24 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main()
|
D | sixlowpan.rs | 62 let mut matches = utils::parse_options(&opts, free); in main() localVariable 67 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main()
|
D | loopback.rs | 81 let mut matches = utils::parse_options(&opts, free); in main() localVariable 82 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ true) in main()
|
/smoltcp-0.9.1/fuzz/ |
D | utils.rs | 29 Ok(matches) => { in parse_options() 30 if matches.opt_present("h") || matches.free.len() != free.len() { in parse_options() 37 process::exit(if matches.free.len() != free.len() { in parse_options() 43 matches in parse_options() 91 matches: &mut Matches, in parse_middleware_options() 98 let drop_chance = matches in parse_middleware_options() 102 let corrupt_chance = matches in parse_middleware_options() 106 let size_limit = matches in parse_middleware_options() 110 let tx_rate_limit = matches in parse_middleware_options() 114 let rx_rate_limit = matches in parse_middleware_options() [all …]
|
/smoltcp-0.9.1/utils/ |
D | packet2pcap.rs | 44 let matches = match opts.parse(&args[1..]) { in main() localVariable 52 let link_type = match matches.opt_str("t").as_ref().map(|s| &s[..]) { in main() 58 if matches.opt_present("h") || matches.free.len() != 2 || link_type.is_none() { in main() 64 Path::new(&matches.free[0]), in main() 65 Path::new(&matches.free[1]), in main()
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | tcp_headers.rs | 121 let mut matches = utils::parse_options(&opts, free); localVariable 123 &mut matches,
|
/smoltcp-0.9.1/src/iface/interface/ |
D | ipv4.rs | 346 if matches!(caps.medium, Medium::Ethernet) { in dispatch_ipv4_frag() 369 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ipv4_frag()
|
D | mod.rs | 1683 if matches!(self.caps.medium, Medium::Ieee802154) { in dispatch_ip() 1708 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ip() 1816 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ip() 1841 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ip() 1855 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ip()
|
/smoltcp-0.9.1/src/wire/ |
D | ieee802154.rs | 246 if matches!(packet.dst_addressing_mode(), AddressingMode::Unknown(_)) { in new_checked() 250 if matches!(packet.src_addressing_mode(), AddressingMode::Unknown(_)) { in new_checked()
|
D | ipv6routing.rs | 177 if matches!(self.routing_type(), Type::Type2) in check_len()
|
D | dns.rs | 759 assert!(matches!( in test_parse_response_nxdomain()
|
/smoltcp-0.9.1/src/storage/ |
D | packet_buffer.rs | 314 assert!(matches!( in test_dequeue_with()
|
/smoltcp-0.9.1/src/socket/ |
D | tcp.rs | 1887 if matches!(self.state, State::SynSent | State::SynReceived) && !data_in_flight { in seq_to_transmit()
|