Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update etherparse requirement from 0.10.1 to 0.12.0 #3

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 25, 2022

Updates the requirements on etherparse to permit the latest version.

Release notes

Sourced from etherparse's releases.

Add payload_ether_type method to SlicedPacket& PacketHeaders

  • Add payload_ether_type method to SlicedPacket & PacketHeaders
Changelog

Sourced from etherparse's changelog.

0.12.0

  • Add payload_ether_type method to SlicedPacket & PacketHeaders

0.11.0

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.
  • TransportHeader::Icmpv4 & TransportHeader::Icmpv6 enum values added
  • TransportSlice::Icmpv4& TransportSlice::Icmpv6 enum values added

0.10.1: Corrected Fragmentation Handling, Additional IP Extension Headers Support & Qualitiy of Life Improvements

With this version the support for IPv6 gets extended and bugs in the parsing of fragmented packets as well as authentification headers are fixed. Additionally a bunch of performance improvements are included and new methods have been added (e.g. the method to_bytes for headers with static sizes).

It has been almost two years since the last update and I think it is fair to say that I underestimated the effort it would take to introduce partial support for IPv6 extension headers. As it was so long sice the last update a bunch of changes have piled on. This also means there are some breaking changes in this version.

The next versions will hopefully be smaller and contain some qualitiy of life improvements.

Special thanks to @​Bren2010 for reporting the errors with fragmented packets.

Extension headers added to IpHeader & InternetSlice

With the added support for authentification headers (for both IPV4 and IPV6) and additional IPV6 extension headers support a place to store the results when parsing headers or slicing them had be chosen. After some though I decided to put the results into the enum values as a second argument.

So the signature of IpHeader has changed from

pub enum IpHeader {
    Version4(Ipv4Header),
    Version6(Ipv6Header)
}

to

pub enum IpHeader {
    Version4(Ipv4Header, Ipv4Extensions),
    Version6(Ipv6Header, Ipv6Extensions)
}
</tr></table> 

... (truncated)

Commits
  • aebf1a5 Updated for 0.12.0 release
  • 6be2b7d Added payload_ether_type to PacketHeaders
  • 2a1e65a Added payload_ether_type to SlicedPacket
  • 118dd6c Updated changelog
  • d93dec4 Updated changelog
  • 1a26a23 IpHeader::set_payload_len: Reworded description
  • 3dc4b92 IpHeader::set_payload_len: Added extension header size and tests
  • 1e7cf27 Added InternetSlice::is_fragmenting_payload test
  • 3a33bc9 Add convenience fn on IpHeader for set_payload_length()
  • 535735f Add convenience fn for is_fragmenting_payload() on InternetSlice
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [etherparse](https://github.com/JulianSchmid/etherparse) to permit the latest version.
- [Release notes](https://github.com/JulianSchmid/etherparse/releases)
- [Changelog](https://github.com/JulianSchmid/etherparse/blob/master/changelog.md)
- [Commits](JulianSchmid/etherparse@0.10.1...0.12.0)

---
updated-dependencies:
- dependency-name: etherparse
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 25, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Dec 6, 2022

Superseded by #21.

@dependabot dependabot bot closed this Dec 6, 2022
@dependabot dependabot bot deleted the dependabot/cargo/etherparse-0.12.0 branch December 6, 2022 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants