Home
last modified time | relevance | path

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

/smoltcp-0.9.1/src/socket/
Dicmp.rs372 pub(crate) fn accepts(&self, cx: &mut Context, ip_repr: &IpRepr, icmp_repr: &IcmpRepr) -> bool { in accepts()
373 match (&self.endpoint, icmp_repr) { in accepts()
441 pub(crate) fn process(&mut self, _cx: &mut Context, ip_repr: &IpRepr, icmp_repr: &IcmpRepr) { in process()
442 match *icmp_repr { in process()
444 IcmpRepr::Ipv4(icmp_repr) => { in process()
445 net_trace!("icmp: receiving {} octets", icmp_repr.buffer_len()); in process()
449 .enqueue(icmp_repr.buffer_len(), ip_repr.src_addr()) in process()
452 icmp_repr.emit( in process()
461 IcmpRepr::Ipv6(icmp_repr) => { in process()
462 net_trace!("icmp: receiving {} octets", icmp_repr.buffer_len()); in process()
[all …]
/smoltcp-0.9.1/examples/
Dping.rs26 let icmp_repr = $repr_type::EchoRequest { localVariable
32 let icmp_payload = $socket.send(icmp_repr.buffer_len(), $remote_addr).unwrap();
35 (icmp_repr, icmp_packet)
165 let (icmp_repr, mut icmp_packet) = send_icmp_ping!( in main()
174 icmp_repr.emit(&mut icmp_packet, &device_caps.checksum); in main()
177 let (icmp_repr, mut icmp_packet) = send_icmp_ping!( in main()
186 icmp_repr.emit( in main()
206 let icmp_repr = Icmpv4Repr::parse(&icmp_packet, &device_caps.checksum).unwrap(); in main() localVariable
209 icmp_repr, in main()
219 let icmp_repr = Icmpv6Repr::parse( in main() localVariable
[all …]
/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs242 let icmp_repr = check!(Icmpv4Repr::parse(&icmp_packet, &self.caps.checksum)); in process_icmpv4() localVariable
252 if icmp_socket.accepts(self, &ip_repr, &icmp_repr.into()) { in process_icmpv4()
253 icmp_socket.process(self, &ip_repr, &icmp_repr.into()); in process_icmpv4()
258 match icmp_repr { in process_icmpv4()
294 icmp_repr: Icmpv4Repr<'icmp>, in icmpv4_reply()
305 payload_len: icmp_repr.buffer_len(), in icmpv4_reply()
308 Some(IpPacket::Icmpv4((ipv4_reply_repr, icmp_repr))) in icmpv4_reply()
311 match icmp_repr { in icmpv4_reply()
318 payload_len: icmp_repr.buffer_len(), in icmpv4_reply()
321 Some(IpPacket::Icmpv4((ipv4_reply_repr, icmp_repr))) in icmpv4_reply()
Dipv6.rs112 let icmp_repr = check!(Icmpv6Repr::parse( in process_icmpv6() localVariable
127 if icmp_socket.accepts(self, &ip_repr, &icmp_repr.into()) { in process_icmpv6()
128 icmp_socket.process(self, &ip_repr, &icmp_repr.into()); in process_icmpv6()
133 match icmp_repr { in process_icmpv6()
292 icmp_repr: Icmpv6Repr<'icmp>, in icmpv6_reply()
299 payload_len: icmp_repr.buffer_len(), in icmpv6_reply()
302 Some(IpPacket::Icmpv6((ipv6_reply_repr, icmp_repr))) in icmpv6_reply()
Dsixlowpan.rs343 IpPacket::Icmpv6((_, icmp_repr)) => { in dispatch_ieee802154()
344 total_size += icmp_repr.buffer_len(); in dispatch_ieee802154()
409 IpPacket::Icmpv6((_, icmp_repr)) => { in dispatch_ieee802154()
411 Icmpv6Packet::new_unchecked(&mut b[..icmp_repr.buffer_len()]); in dispatch_ieee802154()
412 icmp_repr.emit( in dispatch_ieee802154()
523 IpPacket::Icmpv6((_, icmp_repr)) => { in dispatch_ieee802154()
525 Icmpv6Packet::new_unchecked(&mut tx_buf[..icmp_repr.buffer_len()]); in dispatch_ieee802154()
526 icmp_repr.emit( in dispatch_ieee802154()
Dtests.rs227 let icmp_repr = Icmpv4Repr::DstUnreachable { in test_icmp_error_no_payload() localVariable
244 payload_len: icmp_repr.buffer_len(), in test_icmp_error_no_payload()
247 icmp_repr, in test_icmp_error_no_payload()
355 let icmp_repr = Icmpv4Repr::DstUnreachable { in test_icmp_error_port_unreachable() localVariable
371 payload_len: icmp_repr.buffer_len(), in test_icmp_error_port_unreachable()
374 icmp_repr, in test_icmp_error_port_unreachable()