Lines Matching refs:frame

839             rx_token.consume(|frame| {  in socket_ingress()
845 .process_ethernet(sockets, &frame, &mut self.fragments) in socket_ingress()
857 self.inner.process_ip(sockets, &frame, &mut self.fragments) in socket_ingress()
871 .process_ieee802154(sockets, &frame, &mut self.fragments) in socket_ingress()
1284 fn process_ip<'frame, T: AsRef<[u8]>>( in process_ip() argument
1287 ip_payload: &'frame T, in process_ip()
1288 frag: &'frame mut FragmentsBuffer, in process_ip()
1289 ) -> Option<IpPacket<'frame>> { in process_ip() argument
1356 fn process_udp<'frame>( in process_udp()
1362 udp_payload: &'frame [u8], in process_udp()
1363 ip_payload: &'frame [u8], in process_udp()
1364 ) -> Option<IpPacket<'frame>> { in process_udp() argument
1419 pub(crate) fn process_tcp<'frame>( in process_tcp()
1423 ip_payload: &'frame [u8], in process_tcp()
1424 ) -> Option<IpPacket<'frame>> { in process_tcp() argument
1474 self.dispatch_ethernet(tx_token, arp_repr.buffer_len(), |mut frame| { in dispatch()
1475 frame.set_dst_addr(dst_hardware_addr); in dispatch()
1476 frame.set_ethertype(EthernetProtocol::Arp); in dispatch()
1478 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in dispatch()
1614 self.dispatch_ethernet(tx_token, arp_repr.buffer_len(), |mut frame| { in lookup_hardware_addr()
1615 frame.set_dst_addr(EthernetAddress::BROADCAST); in lookup_hardware_addr()
1616 frame.set_ethertype(EthernetProtocol::Arp); in lookup_hardware_addr()
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() localVariable
1736 frame.set_src_addr(src_addr); in dispatch_ip()
1737 frame.set_dst_addr(dst_hardware_addr); in dispatch_ip()
1741 IpVersion::Ipv4 => frame.set_ethertype(EthernetProtocol::Ipv4), in dispatch_ip()
1743 IpVersion::Ipv6 => frame.set_ethertype(EthernetProtocol::Ipv6), in dispatch_ip()