Searched refs:payload_mut (Results 1 – 14 of 14) sorted by relevance
/smoltcp-0.9.1/src/wire/ |
D | ndisc.rs | 402 let mut opt_pkt = NdiscOption::new_unchecked(packet.payload_mut()); in emit() 426 let mut opt_pkt = NdiscOption::new_unchecked(packet.payload_mut()); in emit() 433 NdiscOption::new_unchecked(&mut packet.payload_mut()[offset..]); in emit() 439 NdiscOption::new_unchecked(&mut packet.payload_mut()[offset..]); in emit() 453 let mut opt_pkt = NdiscOption::new_unchecked(packet.payload_mut()); in emit() 469 let mut opt_pkt = NdiscOption::new_unchecked(packet.payload_mut()); in emit() 487 let mut opt_pkt = NdiscOption::new_unchecked(packet.payload_mut()); in emit() 495 NdiscOption::new_unchecked(&mut packet.payload_mut()[offset..]); in emit() 556 .payload_mut() in test_router_advert_construct()
|
D | icmpv6.rs | 486 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 672 emit_contained_packet(packet.payload_mut(), header, data); in emit() 680 emit_contained_packet(packet.payload_mut(), header, data); in emit() 691 emit_contained_packet(packet.payload_mut(), header, data); in emit() 704 emit_contained_packet(packet.payload_mut(), header, data); in emit() 716 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit() 717 packet.payload_mut()[..data_len].copy_from_slice(&data[..data_len]) in emit() 729 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit() 730 packet.payload_mut()[..data_len].copy_from_slice(&data[..data_len]) in emit() 828 .payload_mut() in test_echo_construct() [all …]
|
D | mld.rs | 291 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 376 packet.payload_mut().copy_from_slice(&data[..]); in emit() 386 packet.payload_mut().copy_from_slice(&data[..]); in emit() 474 .payload_mut() in test_query_construct() 511 let mut addr_rcrd = AddressRecord::new_unchecked(packet.payload_mut()); in test_record_construct() 517 .payload_mut() in test_record_construct()
|
D | ethernet.rs | 200 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 350 frame.payload_mut().copy_from_slice(&PAYLOAD_BYTES[..]); in test_construct() 396 assert_eq!(PAYLOAD_BYTES.len(), frame.payload_mut().len()); in test_construct() 397 frame.payload_mut().copy_from_slice(&PAYLOAD_BYTES[..]); in test_construct()
|
D | udp.rs | 196 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 283 emit_payload(packet.payload_mut()); in emit() 374 packet.payload_mut().copy_from_slice(&PAYLOAD_BYTES[..]); in test_construct()
|
D | ipv6.rs | 631 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 1131 .payload_mut() in test_packet_construction() 1156 Packet::new_unchecked(&mut bytes).payload_mut().len(), in test_overlong() 1213 packet.payload_mut().copy_from_slice(&REPR_PAYLOAD_BYTES); in test_basic_repr_emit()
|
D | ipv4.rs | 606 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 848 packet.payload_mut().copy_from_slice(&PAYLOAD_BYTES[..]); in test_construct() 863 Packet::new_unchecked(&mut bytes).payload_mut().len(), in test_overlong() 928 packet.payload_mut().copy_from_slice(&REPR_PAYLOAD_BYTES); in test_emit()
|
D | sixlowpan.rs | 1130 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 1611 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 1886 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 2018 emit_payload(packet.payload_mut()); in emit() 2030 checksum::data(packet.payload_mut()), in emit() 2118 assert_eq!(packet.payload_mut(), b"Hello World!"); in udp_emit()
|
D | dns.rs | 214 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 431 self.question.emit(packet.payload_mut()) in emit()
|
D | tcp.rs | 580 pub fn payload_mut(&mut self) -> &mut [u8] { in payload_mut() method 962 packet.payload_mut()[..self.payload.len()].copy_from_slice(self.payload); in emit() 1149 packet.payload_mut().copy_from_slice(&PAYLOAD_BYTES[..]); in test_construct()
|
D | ndiscoption.rs | 561 ip_packet.payload_mut().copy_from_slice(data); in emit()
|
D | ieee802154.rs | 727 pub fn payload_mut(&mut self) -> Option<&mut [u8]> { in payload_mut() method
|
/smoltcp-0.9.1/src/iface/interface/ |
D | tests.rs | 721 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_handle_valid_arp_request() 778 ip_repr.emit(frame.payload_mut(), &ChecksumCapabilities::default()); in test_handle_valid_ndisc_request() 782 &mut Icmpv6Packet::new_unchecked(&mut frame.payload_mut()[ip_repr.header_len()..]), in test_handle_valid_ndisc_request() 845 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_handle_other_arp_request() 897 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_arp_flush_after_update_ip()
|
D | mod.rs | 1478 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in dispatch() 1618 arp_repr.emit(&mut ArpPacket::new_unchecked(frame.payload_mut())) in lookup_hardware_addr()
|