Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 6 of 6) sorted by relevance

/smoltcp-0.9.1/src/iface/interface/
Digmp.rs46 } else if let Some(pkt) = self.inner.igmp_report_packet(IgmpVersion::Version2, addr) in join_multicast_group()
55 .dispatch_ip(tx_token, pkt, &mut self.fragmenter) in join_multicast_group()
89 } else if let Some(pkt) = self.inner.igmp_leave_packet(addr) { in leave_multicast_group()
97 .dispatch_ip(tx_token, pkt, &mut self.fragmenter) in leave_multicast_group()
128 if let Some(pkt) = self.inner.igmp_report_packet(version, group) { in igmp_egress()
133 .dispatch_ip(tx_token, pkt, &mut self.fragmenter) in igmp_egress()
158 if let Some(pkt) = self.inner.igmp_report_packet(version, addr) { in igmp_egress()
163 .dispatch_ip(tx_token, pkt, &mut self.fragmenter) in igmp_egress()
Dsixlowpan.rs363 let pkt = frag; in dispatch_ieee802154() localVariable
365 if pkt.buffer.len() < total_size { in dispatch_ieee802154()
373 pkt.sixlowpan.ll_dst_addr = ll_dst_a; in dispatch_ieee802154()
374 pkt.sixlowpan.ll_src_addr = ll_src_a; 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()
423 pkt.packet_len = total_size; in dispatch_ieee802154()
427 pkt.sixlowpan.datagram_size = (packet.ip_repr().payload_len() + 40) as u16; in dispatch_ieee802154()
433 pkt.sixlowpan.datagram_tag = tag; in dispatch_ieee802154()
436 size: pkt.sixlowpan.datagram_size, in dispatch_ieee802154()
[all …]
Dipv4.rs407 let pkt = IpPacket::Igmp(( in igmp_report_packet() localVariable
419 Some(pkt) in igmp_report_packet()
Dmod.rs1001 let pkt = &self.fragmenter; in ipv4_egress() localVariable
1002 if pkt.packet_len > pkt.sent_bytes { in ipv4_egress()
1031 let pkt = &self.fragmenter; in sixlowpan_egress() localVariable
1032 if pkt.packet_len > pkt.sent_bytes { in sixlowpan_egress()
Dtests.rs114 rx.consume(|pkt| { in recv_all()
115 pkts.push(pkt.to_vec()); in recv_all()
/smoltcp-0.9.1/src/wire/
Dndisc.rs239 let pkt = NdiscOption::new_checked(&payload[offset..])?; in parse() localVariable
242 if let Ok(opt) = NdiscOptionRepr::parse(&pkt) { in parse()
246 let len = pkt.data_len() as usize * 8; in parse()