Skip to content

ICMP & Additional Methods

Choose a tag to compare

@JulianSchmid JulianSchmid released this 17 Jul 19:12
· 535 commits to master since this release

New Features:

  • Added partial ICMP and ICMPv6 support (thanks to @robs-zeynet for the PR with the initial implementation).
  • Added PacketBuilder::<IpHeader>::write that allows writing without specifying a transport protocol (thanks to @karpawich for the PR)
  • Added functions SlicedPacket::from_ether_type & PacketHeaders::from_ether_type to slice & decode messages based on the starting ether type
  • IpHeader::set_payload_len added to set the length fields in the ip header (thanks to @agrover for the PR).
  • InternetSlice::is_fragmenting_payload added to check for fragmentation (thanks to @agrover for the PR).

Breaking Changes:

  • Ipv4Header::new changed protocol argument type from IpNumber to u8. Use the constants in ip_number instead or cast the IpNumber to an u8 (e.g. IpNumber::Udp as u8).
  • TransportHeader::Icmpv4 & TransportHeader::Icmpv6 enum values added
  • TransportSlice::Icmpv4& TransportSlice::Icmpv6 enum values added