Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 22 of 22) sorted by relevance

/smoltcp-0.9.1/examples/
Dutils.rs79 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 …]
Dclient.rs22 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()
Dhttpclient.rs23 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()
Dping.rs85 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()
Ddns.rs26 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()
Dbenchmark.rs72 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()
Ddhcp_client.rs24 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()
Dmulticast.rs24 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()
Dsixlowpan_benchmark.rs135 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()
Dserver.rs20 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()
Dsixlowpan.rs62 let mut matches = utils::parse_options(&opts, free); in main() localVariable
67 utils::parse_middleware_options(&mut matches, device, /*loopback=*/ false); in main()
Dloopback.rs81 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/
Dutils.rs29 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/
Dpacket2pcap.rs44 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/
Dtcp_headers.rs121 let mut matches = utils::parse_options(&opts, free); localVariable
123 &mut matches,
/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs346 if matches!(caps.medium, Medium::Ethernet) { in dispatch_ipv4_frag()
369 if matches!(self.caps.medium, Medium::Ethernet) { in dispatch_ipv4_frag()
Dmod.rs1683 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/
Dieee802154.rs246 if matches!(packet.dst_addressing_mode(), AddressingMode::Unknown(_)) { in new_checked()
250 if matches!(packet.src_addressing_mode(), AddressingMode::Unknown(_)) { in new_checked()
Dipv6routing.rs177 if matches!(self.routing_type(), Type::Type2) in check_len()
Ddns.rs759 assert!(matches!( in test_parse_response_nxdomain()
/smoltcp-0.9.1/src/storage/
Dpacket_buffer.rs314 assert!(matches!( in test_dequeue_with()
/smoltcp-0.9.1/src/socket/
Dtcp.rs1887 if matches!(self.state, State::SynSent | State::SynReceived) && !data_in_flight { in seq_to_transmit()