/smoltcp-0.9.1/src/iface/interface/ |
D | sixlowpan.rs | 221 let mut ipv6_packet = Ipv6Packet::new_unchecked(&mut buffer[..ipv6_repr.buffer_len()]); in decompress_sixlowpan() 223 let buffer = &mut buffer[ipv6_repr.buffer_len()..]; in decompress_sixlowpan() 326 total_size += iphc_repr.buffer_len(); in dispatch_ieee802154() 327 let mut _compressed_headers_len = iphc_repr.buffer_len(); in dispatch_ieee802154() 340 total_size += tcp_repr.buffer_len(); in dispatch_ieee802154() 344 total_size += icmp_repr.buffer_len(); in dispatch_ieee802154() 350 let ieee_len = ieee_repr.buffer_len(); in dispatch_ieee802154() 377 SixlowpanIphcPacket::new_unchecked(&mut pkt.buffer[..iphc_repr.buffer_len()]); in dispatch_ieee802154() 380 let b = &mut pkt.buffer[iphc_repr.buffer_len()..]; in dispatch_ieee802154() 400 TcpPacket::new_unchecked(&mut b[..tcp_repr.buffer_len()]); in dispatch_ieee802154() [all …]
|
D | ipv4.rs | 155 icmp_reply_payload_len(ip_payload.len(), IPV4_MIN_MTU, ipv4_repr.buffer_len()); in process_ipv4() 305 payload_len: icmp_repr.buffer_len(), in icmpv4_reply() 318 payload_len: icmp_repr.buffer_len(), in icmpv4_reply() 337 let ip_len = (frag.packet_len - frag.sent_bytes + frag.ipv4.repr.buffer_len()).min(mtu_max); in dispatch_ipv4_frag() 338 let payload_len = ip_len - frag.ipv4.repr.buffer_len(); in dispatch_ipv4_frag() 375 Ipv4Packet::new_unchecked(&mut tx_buffer[..frag.ipv4.repr.buffer_len()]); in dispatch_ipv4_frag() 386 tx_buffer[frag.ipv4.repr.buffer_len()..][..payload_len].copy_from_slice( in dispatch_ipv4_frag() 387 &frag.buffer[frag.ipv4.frag_offset as usize + frag.ipv4.repr.buffer_len()..] in dispatch_ipv4_frag() 413 payload_len: igmp_repr.buffer_len(), in igmp_report_packet() 434 payload_len: igmp_repr.buffer_len(), in igmp_leave_packet()
|
D | ethernet.rs | 55 buffer_len: usize, in dispatch_ethernet() 62 let tx_len = EthernetFrame::<&[u8]>::buffer_len(buffer_len); in dispatch_ethernet()
|
D | ipv6.rs | 91 icmp_reply_payload_len(ip_payload.len(), IPV6_MIN_MTU, ipv6_repr.buffer_len()); in process_nxt_hdr() 95 pointer: ipv6_repr.buffer_len() as u32, in process_nxt_hdr() 239 payload_len: advert.buffer_len(), in process_ndisc() 284 &ip_payload[hbh_repr.buffer_len()..], in process_hopbyhop() 299 payload_len: icmp_repr.buffer_len(), in icmpv6_reply()
|
D | tests.rs | 244 payload_len: icmp_repr.buffer_len(), in test_icmp_error_no_payload() 371 payload_len: icmp_repr.buffer_len(), in test_icmp_error_port_unreachable() 528 payload_len: icmpv4_repr.buffer_len(), in test_handle_ipv4_broadcast() 532 let mut bytes = vec![0u8; ipv4_repr.buffer_len() + icmpv4_repr.buffer_len()]; in test_handle_ipv4_broadcast() 539 &mut Icmpv4Packet::new_unchecked(&mut bytes[ipv4_repr.buffer_len()..]), in test_handle_ipv4_broadcast() 556 payload_len: expected_icmpv4_repr.buffer_len(), in test_handle_ipv4_broadcast() 641 payload_len: expected_icmp_repr.buffer_len(), in test_icmp_reply_size() 655 payload_len: expected_icmp_repr.buffer_len(), in test_icmp_reply_size() 661 expected_ip_repr.buffer_len() + expected_icmp_repr.buffer_len(), in test_icmp_reply_size() 667 expected_ip_repr.buffer_len() + expected_icmp_repr.buffer_len(), in test_icmp_reply_size() [all …]
|
D | mod.rs | 422 dhcp_repr.buffer_len(), in emit_payload() 1396 icmp_reply_payload_len(ip_payload.len(), IPV4_MIN_MTU, ipv4_repr.buffer_len()); in process_udp() 1407 icmp_reply_payload_len(ip_payload.len(), IPV6_MIN_MTU, ipv6_repr.buffer_len()); in process_udp() 1474 self.dispatch_ethernet(tx_token, arp_repr.buffer_len(), |mut frame| { in dispatch() 1614 self.dispatch_ethernet(tx_token, arp_repr.buffer_len(), |mut frame| { in lookup_hardware_addr() 1643 payload_len: solicit.buffer_len(), in lookup_hardware_addr() 1704 let mut total_len = ip_repr.buffer_len(); in dispatch_ip() 1709 total_len = EthernetFrame::<&[u8]>::buffer_len(total_len); in dispatch_ip() 1757 let total_ip_len = ip_repr.buffer_len(); in dispatch_ip() 1771 let ip_header_len = repr.buffer_len(); in dispatch_ip() [all …]
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | sixlowpan_packet.rs | 34 let mut buffer = vec![0; repr.buffer_len()]; 48 let mut buffer = vec![0; iphc_repr.buffer_len()]; 63 let mut buffer = vec![0; repr.buffer_len()]; 107 let mut buffer = vec![0; repr.buffer_len()]; 119 let mut buffer = vec![0; repr.buffer_len()]; 132 let mut buffer = vec![0; repr.buffer_len()]; 146 let mut buffer = vec![0; repr.buffer_len()]; 182 let mut buffer = vec![0; repr.buffer_len()]; 191 let mut buffer = vec![0; repr.buffer_len()]; 206 let mut buffer = vec![0; repr.buffer_len()]; [all …]
|
D | ieee802154_header.rs | 10 let mut buffer = vec![0; repr.buffer_len()];
|
D | dhcp_header.rs | 9 let mut dhcp_payload = vec![0; dhcp_repr.buffer_len()];
|
/smoltcp-0.9.1/src/wire/ |
D | ndisc.rs | 340 pub const fn buffer_len(&self) -> usize { in buffer_len() method 344 field::UNUSED.end + { NdiscOptionRepr::SourceLinkLayerAddr(addr).buffer_len() } in buffer_len() 356 offset += NdiscOptionRepr::TargetLinkLayerAddr(lladdr).buffer_len(); in buffer_len() 359 offset += NdiscOptionRepr::Mtu(mtu).buffer_len(); in buffer_len() 362 offset += NdiscOptionRepr::PrefixInformation(prefix_info).buffer_len(); in buffer_len() 369 offset += NdiscOptionRepr::SourceLinkLayerAddr(lladdr).buffer_len(); in buffer_len() 380 offset += NdiscOptionRepr::TargetLinkLayerAddr(lladdr).buffer_len(); in buffer_len() 385 .buffer_len(); in buffer_len() 429 offset += opt.buffer_len(); in emit() 435 offset += NdiscOptionRepr::Mtu(mtu).buffer_len(); in emit() [all …]
|
D | ipv6hopbyhop.rs | 186 pub const fn buffer_len(&self) -> usize { in buffer_len() method 199 Ipv6OptionsIterator::new(self.options, self.buffer_len() - 2) in options() 365 assert_eq!(repr.buffer_len(), REPR_PACKET_PAD4.len()); in test_buffer_len() 369 assert_eq!(repr.buffer_len(), REPR_PACKET_PAD12.len()); in test_buffer_len()
|
D | icmpv6.rs | 628 pub const fn buffer_len(&self) -> usize { in buffer_len() method 634 field::UNUSED.end + header.buffer_len() + data.len() in buffer_len() 640 &Repr::Ndisc(ndisc) => ndisc.buffer_len(), in buffer_len() 641 &Repr::Mld(mld) => mld.buffer_len(), in buffer_len() 659 let payload = &mut ip_packet.into_inner()[header.buffer_len()..]; in emit() 850 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_echo_emit() 903 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_too_big_emit()
|
D | icmpv4.rs | 471 pub const fn buffer_len(&self) -> usize { in buffer_len() method 478 field::UNUSED.end + header.buffer_len() + data.len() in buffer_len() 527 let payload = &mut ip_packet.into_inner()[header.buffer_len()..]; in emit() 541 let payload = &mut ip_packet.into_inner()[header.buffer_len()..]; in emit() 689 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_echo_emit()
|
D | ipv6option.rs | 248 pub const fn buffer_len(&self) -> usize { in buffer_len() method 320 self.pos += repr.buffer_len(); in next() 448 assert_eq!(pad1.buffer_len(), 1); in test_option_parse() 454 assert_eq!(padn.buffer_len(), 3); in test_option_parse()
|
D | ipv6routing.rs | 460 pub const fn buffer_len(&self) -> usize { in buffer_len() method 670 assert_eq!(REPR_TYPE2.buffer_len(), 24); in test_buffer_len() 671 assert_eq!(REPR_SRH_FULL.buffer_len(), 40); in test_buffer_len() 672 assert_eq!(REPR_SRH_ELIDED.buffer_len(), 16); in test_buffer_len()
|
D | udp.rs | 59 let buffer_len = self.buffer.as_ref().len(); in check_len() localVariable 60 if buffer_len < HEADER_LEN { in check_len() 64 if buffer_len < field_len || field_len < HEADER_LEN { in check_len()
|
D | ipv6fragment.rs | 191 pub const fn buffer_len(&self) -> usize { in buffer_len() method 310 assert_eq!(repr.buffer_len(), BYTES_HEADER_MORE_FRAG.len()); in test_buffer_len()
|
D | ndiscoption.rs | 475 [field::REDIRECTED_RESERVED.len() + ip_repr.buffer_len()..], in parse() 502 pub const fn buffer_len(&self) -> usize { in buffer_len() method 511 (8 + header.buffer_len() + data.len() + 7) / 8 * 8 in buffer_len() 557 opt.set_data_len((((8 + header.buffer_len() + data.len()) + 7) / 8) as u8); in emit()
|
D | dns.rs | 314 pub const fn buffer_len(&self) -> usize { in buffer_len() method 415 pub const fn buffer_len(&self) -> usize { in buffer_len() method 416 field::HEADER_END + self.question.buffer_len() in buffer_len() 783 buf.resize(repr.buffer_len(), 0); in test_emit()
|
D | ethernet.rs | 140 pub const fn buffer_len(payload_len: usize) -> usize { in buffer_len() method 280 pub const fn buffer_len(&self) -> usize { in buffer_len() method
|
D | ieee802154.rs | 794 pub const fn buffer_len(&self) -> usize { in buffer_len() method 869 let buffer_len = repr.buffer_len(); in prepare_frame() localVariable 871 let mut frame = Frame::new_unchecked(&mut buffer[..buffer_len]); in prepare_frame()
|
D | tcp.rs | 673 pub fn buffer_len(&self) -> usize { in buffer_len() method 700 length = self.buffer_len(); in emit() 910 pub fn buffer_len(&self) -> usize { in buffer_len() method 1210 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_emit() 1232 let buffer = &mut [0; 40][..$opt.buffer_len()];
|
/smoltcp-0.9.1/benches/ |
D | bench.rs | 46 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_tcp() 92 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_ipv4() 110 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_ipv6()
|
/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 445 net_trace!("icmp: receiving {} octets", icmp_repr.buffer_len()); in process() 449 .enqueue(icmp_repr.buffer_len(), ip_repr.src_addr()) in process() 462 net_trace!("icmp: receiving {} octets", icmp_repr.buffer_len()); in process() 466 .enqueue(icmp_repr.buffer_len(), ip_repr.src_addr()) in process() 522 payload_len: repr.buffer_len(), in dispatch() 559 payload_len: repr.buffer_len(), in dispatch() 736 payload_len: ECHOV4_REPR.buffer_len(), in test_set_hop_limit_v4() 830 payload_len: icmp_repr.buffer_len(), in test_accepts_udp() 988 payload_len: ECHOV6_REPR.buffer_len(), in test_set_hop_limit() 1092 payload_len: icmp_repr.buffer_len(), in test_accepts_udp()
|
D | dhcpv4.rs | 570 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch() 598 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch() 627 ipv4_repr.payload_len = udp_repr.header_len() + dhcp_repr.buffer_len(); in dispatch() 752 let mut payload = vec![0; dhcp_repr.buffer_len()]; in send() 772 udp_repr.header_len() + dhcp_repr.buffer_len() in recv()
|