/smoltcp-0.9.1/src/wire/ |
D | udp.rs | 6 use crate::wire::ip::checksum; 100 pub fn checksum(&self) -> u16 { in checksum() method 122 if self.checksum() == 0 { in verify_checksum() 127 checksum::combine(&[ in verify_checksum() 128 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Udp, self.len() as u32), in verify_checksum() 129 checksum::data(&data[..self.len() as usize]), in verify_checksum() 180 let checksum = { in fill_checksum() localVariable 182 !checksum::combine(&[ in fill_checksum() 183 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Udp, self.len() as u32), in fill_checksum() 184 checksum::data(&data[..self.len() as usize]), in fill_checksum() [all …]
|
D | igmp.rs | 6 use crate::wire::ip::checksum; 106 pub fn checksum(&self) -> u16 { in checksum() method 128 checksum::data(data) == !0 in verify_checksum() 165 let checksum = { in fill_checksum() localVariable 167 !checksum::data(data) in fill_checksum() 169 self.set_checksum(checksum) in fill_checksum() 385 assert_eq!(packet.checksum(), 0x269); in test_leave_group_deconstruct() 398 assert_eq!(packet.checksum(), 0x08da); in test_report_deconstruct()
|
D | icmpv6.rs | 6 use crate::wire::ip::checksum; 296 pub fn checksum(&self) -> u16 { in checksum() method 364 checksum::combine(&[ in verify_checksum() 365 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Icmpv6, data.len() as u32), in verify_checksum() 366 checksum::data(data), in verify_checksum() 474 let checksum = { in fill_checksum() localVariable 476 !checksum::combine(&[ in fill_checksum() 477 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Icmpv6, data.len() as u32), in fill_checksum() 478 checksum::data(data), in fill_checksum() 481 self.set_checksum(checksum) in fill_checksum() [all …]
|
D | icmpv4.rs | 6 use crate::wire::ip::checksum; 237 pub fn checksum(&self) -> u16 { in checksum() method 283 checksum::data(data) == !0 in verify_checksum() 341 let checksum = { in fill_checksum() localVariable 343 !checksum::data(data) in fill_checksum() 345 self.set_checksum(checksum) in fill_checksum() 651 assert_eq!(packet.checksum(), 0x8efe); in test_echo_deconstruct()
|
D | tcp.rs | 6 use crate::wire::ip::checksum; 274 pub fn checksum(&self) -> u16 { in checksum() method 343 checksum::combine(&[ in verify_checksum() 344 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in verify_checksum() 345 checksum::data(data), in verify_checksum() 560 let checksum = { in fill_checksum() localVariable 562 !checksum::combine(&[ in fill_checksum() 563 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in fill_checksum() 564 checksum::data(data), in fill_checksum() 567 self.set_checksum(checksum) in fill_checksum() [all …]
|
D | sixlowpan.rs | 1402 ip::{checksum, Address as IpAddress}, 1843 pub fn checksum(&self) -> Option<u16> { in checksum() method 1938 fn set_checksum(&mut self, checksum: u16) { in set_checksum() 1942 NetworkEndian::write_u16(&mut data[idx..idx + 2], checksum); in set_checksum() 1967 let chk_sum = !checksum::combine(&[ in parse() 1968 checksum::pseudo_header( in parse() 1977 checksum::data(packet.payload()), in parse() 1980 if let Some(checksum) = packet.checksum() { in parse() 1981 if chk_sum != checksum { in parse() 2020 let chk_sum = !checksum::combine(&[ in emit() [all …]
|
D | ipv4.rs | 6 use crate::wire::ip::{checksum, pretty_print_ip_payload}; 429 pub fn checksum(&self) -> u16 { in checksum() method 458 checksum::data(&data[..self.header_len() as usize]) == !0 in verify_checksum() 597 let checksum = { in fill_checksum() localVariable 599 !checksum::data(&data[..self.header_len() as usize]) in fill_checksum() 601 self.set_checksum(checksum) in fill_checksum() 766 use crate::wire::ip::checksum::format_checksum; in pretty_print() 822 assert_eq!(packet.checksum(), 0xd56e); in test_deconstruct()
|
D | mld.rs | 448 assert_eq!(packet.checksum(), 0x7374); in test_query_deconstruct() 489 assert_eq!(packet.checksum(), 0x7385); in test_record_deconstruct()
|
D | ip.rs | 701 pub mod checksum { module 810 use crate::wire::ip::checksum::format_checksum; in pretty_print_ip_payload()
|
/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 661 let checksum = ChecksumCapabilities::default(); in test_send_dispatch() localVariable 677 ECHOV4_REPR.emit(&mut packet, &checksum); in test_send_dispatch() 716 let checksum = ChecksumCapabilities::default(); in test_set_hop_limit_v4() localVariable 720 ECHOV4_REPR.emit(&mut packet, &checksum); in test_set_hop_limit_v4() 755 let checksum = ChecksumCapabilities::default(); in test_recv_process() localVariable 759 ECHOV4_REPR.emit(&mut packet, &checksum); in test_recv_process() 779 let checksum = ChecksumCapabilities::default(); in test_accept_bad_id() localVariable 787 icmp_repr.emit(&mut packet, &checksum); in test_accept_bad_id() 800 let checksum = ChecksumCapabilities::default(); in test_accepts_udp() localVariable 810 &checksum, in test_accepts_udp() [all …]
|
/smoltcp-0.9.1/examples/ |
D | ping.rs | 174 icmp_repr.emit(&mut icmp_packet, &device_caps.checksum); in main() 190 &device_caps.checksum, in main() 206 let icmp_repr = Icmpv4Repr::parse(&icmp_packet, &device_caps.checksum).unwrap(); in main() 223 &device_caps.checksum, in main()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | ipv4.rs | 20 let ipv4_repr = check!(Ipv4Repr::parse(ipv4_packet, &self.caps.checksum)); in process_ipv4() 93 &self.caps.checksum in process_ipv4() 242 let icmp_repr = check!(Icmpv4Repr::parse(&icmp_packet, &self.caps.checksum)); in process_icmpv4() 376 frag.ipv4.repr.emit(&mut packet, &caps.checksum); in dispatch_ipv4_frag() 382 if caps.checksum.ipv4.tx() { in dispatch_ipv4_frag()
|
D | mod.rs | 366 icmpv4_repr.emit(&mut Icmpv4Packet::new_unchecked(payload), &caps.checksum) in emit_payload() 377 &caps.checksum, in emit_payload() 388 &caps.checksum, in emit_payload() 414 &caps.checksum, in emit_payload() 424 &caps.checksum, in emit_payload() 1057 self.caps.checksum.clone() in checksum_caps() 1123 checksum: crate::phy::ChecksumCapabilities { in mock() 1431 &self.caps.checksum in process_tcp() 1751 repr.emit(&mut tx_buffer, &self.caps.checksum); in dispatch_ip() 1809 if caps.checksum.ipv4.tx() { in dispatch_ip()
|
D | sixlowpan.rs | 405 &self.caps.checksum, in dispatch_ieee802154() 416 &self.caps.checksum, in dispatch_ieee802154() 519 &self.caps.checksum, in dispatch_ieee802154() 530 &self.caps.checksum, in dispatch_ieee802154()
|
D | ipv6.rs | 116 &self.caps.checksum, in process_icmpv6()
|
D | tests.rs | 1108 let checksum_caps = &caps.checksum; in test_handle_igmp() 1375 iface.inner.caps.checksum.icmpv6 = Checksum::None; in test_echo_request_sixlowpan_128_bytes() 1580 iface.inner.caps.checksum.udp = Checksum::None; in test_sixlowpan_udp_with_fragmentation()
|
/smoltcp-0.9.1/src/phy/ |
D | mod.rs | 238 pub checksum: ChecksumCapabilities, field
|
/smoltcp-0.9.1/ |
D | README.md | 48 * IPv4 header checksum is generated and validated. 80 * ICMPv4 header checksum is supported. 91 * ICMPv6 header checksum is supported. 106 * Header checksum is always generated and validated. 114 * Header checksum is generated and validated.
|
D | CHANGELOG.md | 53 - socket/udp: accept packets with checksum field set to `0`, since that means the checksum is not c…
|