Home
last modified time | relevance | path

Searched refs:p (Results 1 – 8 of 8) sorted by relevance

/smoltcp-0.9.1/src/wire/
Ddns.rs512 let (p, r) = Question::parse(payload)?; in parse()
514 payload = p; in parse()
517 let (p, r) = Record::parse(payload)?; in parse()
519 payload = p; in parse()
522 let (p, r) = Record::parse(payload)?; in parse()
524 payload = p; in parse()
527 let (p, r) = Record::parse(payload)?; in parse()
529 payload = p; in parse()
547 let p = Parsed::parse(&[ in test_parse_request() localVariable
553 assert_eq!(p.packet.transaction_id(), 0x5184); in test_parse_request()
[all …]
Dipv6.rs1041 for subnet in subnets.iter().map(|&(a, p)| Cidr::new(Address(a), p)) { in test_cidr()
1045 for subnet in not_subnets.iter().map(|&(a, p)| Cidr::new(Address(a), p)) { in test_cidr()
Dipv4.rs995 .map(|&(a, p)| Cidr::new(Address::new(a[0], a[1], a[2], a[3]), p)) in test_cidr()
1002 .map(|&(a, p)| Cidr::new(Address::new(a[0], a[1], a[2], a[3]), p)) in test_cidr()
Dtcp.rs691 for p in buffer.iter_mut() { in emit()
692 *p = field::OPT_END; in emit()
/smoltcp-0.9.1/src/
Dparsers.rs112 match self.try_do(|p| p.accept_digit(hex)) { in accept_number()
141 if let Some(mac) = self.try_do(|p| p.accept_mac_joined_with(b'-')) { in accept_mac()
144 if let Some(mac) = self.try_do(|p| p.accept_mac_joined_with(b':')) { in accept_mac()
169 let double_colon = match self.try_do(|p| p.accept_str(b"::")) {
192 match self.try_do(|p| p.accept_number(4, 0x10000, true)) {
199 self.try_do(|p| {
200 p.accept_char(b':')?;
201 p.accept_ipv4_mapped_ipv6_part(head, head_idx)
212 self.try_do(|p| {
213 p.accept_char(b':')?;
[all …]
/smoltcp-0.9.1/src/socket/
Ddns.rs367 let p = match Packet::new_checked(payload) { in process() localVariable
374 if p.opcode() != Opcode::Query { in process()
375 net_trace!("unwanted opcode {:?}", p.opcode()); in process()
379 if !p.flags().contains(Flags::RESPONSE) { in process()
384 if p.question_count() != 1 { in process()
385 net_trace!("bad question count {:?}", p.question_count()); in process()
392 if udp_repr.dst_port != pq.port || p.transaction_id() != pq.txid { in process()
396 if p.rcode() == Rcode::NXDomain { in process()
402 let payload = p.payload(); in process()
416 match eq_names(p.parse_name(question.name), p.parse_name(&pq.name)) { in process()
[all …]
/smoltcp-0.9.1/.github/workflows/
Dclippy.yml19 - run: sed -n 's,^rust-version = "\(.*\)"$,RUSTUP_TOOLCHAIN=\1,p' Cargo.toml >> $GITHUB_ENV
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dsixlowpan_packet.rs55 if let Ok(p) = SixlowpanNhcPacket::dispatch(payload) {
56 match p {