Home
last modified time | relevance | path

Searched refs:ipv4_packet (Results 1 – 5 of 5) sorted by relevance

/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs17 ipv4_packet: &Ipv4Packet<&'a T>, in process_ipv4()
20 let ipv4_repr = check!(Ipv4Repr::parse(ipv4_packet, &self.caps.checksum)); in process_ipv4()
29 if ipv4_packet.more_frags() || ipv4_packet.frag_offset() != 0 { in process_ipv4()
30 let key = FragKey::Ipv4(ipv4_packet.get_key()); in process_ipv4()
40 if !ipv4_packet.more_frags() { in process_ipv4()
43 ipv4_packet.total_len() as usize - ipv4_packet.header_len() as usize in process_ipv4()
44 + ipv4_packet.frag_offset() as usize, in process_ipv4()
48 if let Err(e) = f.add(ipv4_packet.payload(), ipv4_packet.frag_offset() as usize) { in process_ipv4()
61 ipv4_packet.payload() in process_ipv4()
66 let ip_payload = ipv4_packet.payload(); in process_ipv4()
Dethernet.rs35 let ipv4_packet = check!(Ipv4Packet::new_checked(eth_frame.payload())); in process_ethernet() localVariable
37 self.process_ipv4(sockets, &ipv4_packet, fragments) in process_ethernet()
Dmod.rs1293 let ipv4_packet = check!(Ipv4Packet::new_checked(ip_payload)); in process_ip() localVariable
1295 self.process_ipv4(sockets, &ipv4_packet, frag) in process_ip()
1802 let mut ipv4_packet = Ipv4Packet::new_unchecked(&mut frag.buffer[..]); in dispatch_ip() localVariable
1804 ipv4_packet.set_ident(ipv4_id); in dispatch_ip()
1805 ipv4_packet.set_more_frags(true); in dispatch_ip()
1806 ipv4_packet.set_dont_frag(false); in dispatch_ip()
1807 ipv4_packet.set_frag_offset(0); in dispatch_ip()
1810 ipv4_packet.fill_checksum(); in dispatch_ip()
Dtests.rs1112 let ipv4_packet = match caps.medium { in test_handle_igmp() localVariable
1123 let ipv4_repr = Ipv4Repr::parse(&ipv4_packet, checksum_caps).ok()?; in test_handle_igmp()
1124 let ip_payload = ipv4_packet.payload(); in test_handle_igmp()
/smoltcp-0.9.1/examples/
Dmulticast.rs102 .and_then(|ipv4_packet| IgmpPacket::new_checked(ipv4_packet.payload())) in main()