Lines Matching refs:new_unchecked
366 icmpv4_repr.emit(&mut Icmpv4Packet::new_unchecked(payload), &caps.checksum) in emit_payload()
370 igmp_repr.emit(&mut IgmpPacket::new_unchecked(payload)) in emit_payload()
376 &mut Icmpv6Packet::new_unchecked(payload), in emit_payload()
383 &mut UdpPacket::new_unchecked(payload), in emit_payload()
411 &mut TcpPacket::new_unchecked(payload), in emit_payload()
419 &mut UdpPacket::new_unchecked(payload), in emit_payload()
423 |buf| dhcp_repr.emit(&mut DhcpPacket::new_unchecked(buf)).unwrap(), in emit_payload()
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()
1733 let mut frame = EthernetFrame::new_unchecked(tx_buffer); in dispatch_ip()
1802 let mut ipv4_packet = Ipv4Packet::new_unchecked(&mut frag.buffer[..]); in dispatch_ip()