From 1d2be79e3af9f7217a7b7ecc1fe573304fc67a50 Mon Sep 17 00:00:00 2001 From: Julian Schmid Date: Sun, 28 Nov 2021 13:56:23 +0100 Subject: [PATCH] Replaced 0.10.0 with 0.10.1 --- Cargo.toml | 2 +- README.md | 2 +- changelog.md | 2 +- src/internet/ip.rs | 4 ++-- src/internet/ip_authentication.rs | 2 +- src/internet/ipv4.rs | 2 +- src/internet/ipv6.rs | 2 +- src/lib.rs | 8 ++++---- src/link/ethernet.rs | 2 +- src/link/vlan_tagging.rs | 4 ++-- src/transport/tcp.rs | 16 ++++++++-------- src/transport/udp.rs | 2 +- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c97e5a9..d70c32e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "etherparse" -version = "0.10.0" +version = "0.10.1" authors = ["Julian Schmid "] edition = "2018" repository = "https://github.com/JulianSchmid/etherparse" diff --git a/README.md b/README.md index 7f92170b..277dc6e4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add the following to your `Cargo.toml`: ```toml [dependencies] -etherparse = "0.10.0" +etherparse = "0.10.1" ``` ## What is etherparse? diff --git a/changelog.md b/changelog.md index 9b799c28..a2bc8559 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ # Changelog: -## 0.10.0: Corrected Fragmentation Handling, Additional IP Extension Headers Support & Qualitiy of Life Improvements +## 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). diff --git a/src/internet/ip.rs b/src/internet/ip.rs index b3ac7f4e..a44e5340 100644 --- a/src/internet/ip.rs +++ b/src/internet/ip.rs @@ -11,7 +11,7 @@ impl IpHeader { /// Renamed to `IpHeader::from_slice` #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Renamed to `IpHeader::from_slice`" )] #[inline] @@ -144,7 +144,7 @@ impl IpHeader { /// to [IpNumber], which also closer to the name /// "Assigned Internet Protocol Numbers" used on iana.org . #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use the type IpNumber instead" )] pub type IpTrafficClass = IpNumber; diff --git a/src/internet/ip_authentication.rs b/src/internet/ip_authentication.rs index 091b3d72..5723e8a7 100644 --- a/src/internet/ip_authentication.rs +++ b/src/internet/ip_authentication.rs @@ -5,7 +5,7 @@ use std::slice::from_raw_parts; /// Deprecated use [IpAuthenticationHeader] instead. #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use the type IpAuthenticationHeader instead" )] pub type IPv6AuthenticationHeader = IpAuthenticationHeader; diff --git a/src/internet/ipv4.rs b/src/internet/ipv4.rs index f385441d..a00113f6 100644 --- a/src/internet/ipv4.rs +++ b/src/internet/ipv4.rs @@ -122,7 +122,7 @@ impl Ipv4Header { /// Renamed to `Ipv4Header::from_slice` #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Renamed to `Ipv4Header::from_slice`" )] #[inline] diff --git a/src/internet/ipv6.rs b/src/internet/ipv6.rs index 26a3bdc9..257bbbde 100644 --- a/src/internet/ipv6.rs +++ b/src/internet/ipv6.rs @@ -32,7 +32,7 @@ impl Ipv6Header { /// Renamed to `Ipv6Header::from_slice` #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Renamed to `Ipv6Header::from_slice`" )] #[inline] diff --git a/src/lib.rs b/src/lib.rs index 4f9ca5a6..6592c96e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ //! //! ```toml //! [dependencies] -//! etherparse = "0.10.0" +//! etherparse = "0.10.1" //! ``` //! //! # What is etherparse? @@ -129,7 +129,7 @@ //! ## Packet Builder //! The PacketBuilder struct provides a high level interface for quickly creating network packets. The PacketBuilder will automatically set fields which can be deduced from the content and compositions of the packet itself (e.g. checksums, lengths, ethertype, ip protocol number). //! -//! [Example:](https://github.com/JulianSchmid/etherparse/blob/0.10.0/examples/write_udp.rs) +//! [Example:](https://github.com/JulianSchmid/etherparse/blob/0.10.1/examples/write_udp.rs) //! ```rust //! use etherparse::PacketBuilder; //! @@ -154,12 +154,12 @@ //! builder.write(&mut result, &payload).unwrap(); //! ``` //! -//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.10.0/examples/write_tcp.rs) available. +//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.10.1/examples/write_tcp.rs) available. //! //! Check out the [PacketBuilder documentation](struct.PacketBuilder.html) for more informations. //! //! ## Manually serialising each header -//! Alternativly it is possible to manually build a packet ([example](https://github.com/JulianSchmid/etherparse/blob/0.10.0/examples/write_ipv4_udp.rs)). Generally each struct representing a header has a "write" method that allows it to be serialized. These write methods sometimes automatically calculate checksums and fill them in. In case this is unwanted behavior (e.g. if you want to generate a packet with an invalid checksum), it is also possible to call a "write_raw" method that will simply serialize the data without doing checksum calculations. +//! Alternativly it is possible to manually build a packet ([example](https://github.com/JulianSchmid/etherparse/blob/0.10.1/examples/write_ipv4_udp.rs)). Generally each struct representing a header has a "write" method that allows it to be serialized. These write methods sometimes automatically calculate checksums and fill them in. In case this is unwanted behavior (e.g. if you want to generate a packet with an invalid checksum), it is also possible to call a "write_raw" method that will simply serialize the data without doing checksum calculations. //! //! Read the documentations of the different methods for a more details: //! diff --git a/src/link/ethernet.rs b/src/link/ethernet.rs index c4f84035..3e3a25d3 100644 --- a/src/link/ethernet.rs +++ b/src/link/ethernet.rs @@ -65,7 +65,7 @@ impl Ethernet2Header { /// Creates a ethernet slice from an other slice. #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Use Ethernet2Header::from_slice instead." )] #[inline] diff --git a/src/link/vlan_tagging.rs b/src/link/vlan_tagging.rs index 6c49ba7e..49de4b39 100644 --- a/src/link/vlan_tagging.rs +++ b/src/link/vlan_tagging.rs @@ -83,7 +83,7 @@ impl SingleVlanHeader { /// Read an SingleVlanHeader from a slice and return the header & unused parts of the slice. #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Use SingleVlanHeader::from_slice instead." )] #[inline] @@ -194,7 +194,7 @@ impl DoubleVlanHeader { /// Read an DoubleVlanHeader from a slice and return the header & unused parts of the slice. #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Use SingleVlanHeader::from_slice instead." )] #[inline] diff --git a/src/transport/tcp.rs b/src/transport/tcp.rs index 9eed8795..4dba2a14 100644 --- a/src/transport/tcp.rs +++ b/src/transport/tcp.rs @@ -281,7 +281,7 @@ impl TcpHeader { /// Renamed to `TcpHeader::from_slice` #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Use TcpHeader::from_slice instead." )] #[inline] @@ -1083,49 +1083,49 @@ pub struct TcpOptionsIterator<'a> { } #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_END instead" )] /// Deprecated please use [tcp_option::KIND_END] instead. pub const TCP_OPTION_ID_END: u8 = 0; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_NOOP instead" )] /// Deprecated please use [tcp_option::KIND_NOOP] instead. pub const TCP_OPTION_ID_NOP: u8 = 1; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_MAXIMUM_SEGMENT_SIZE instead" )] /// Deprecated please use [tcp_option::KIND_MAXIMUM_SEGMENT_SIZE] instead. pub const TCP_OPTION_ID_MAXIMUM_SEGMENT_SIZE: u8 = 2; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_WINDOW_SCALE instead" )] /// Deprecated please use [tcp_option::KIND_WINDOW_SCALE] instead. pub const TCP_OPTION_ID_WINDOW_SCALE: u8 = 3; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_SELECTIVE_ACK_PERMITTED instead" )] /// Deprecated please use [tcp_option::KIND_SELECTIVE_ACK_PERMITTED] instead. pub const TCP_OPTION_ID_SELECTIVE_ACK_PERMITTED: u8 = 4; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_SELECTIVE_ACK instead" )] /// Deprecated please use [tcp_option::KIND_SELECTIVE_ACK] instead. pub const TCP_OPTION_ID_SELECTIVE_ACK: u8 = 5; #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Please use tcp_option::KIND_TIMESTAMP instead" )] /// Deprecated please use [tcp_option::KIND_TIMESTAMP] instead. diff --git a/src/transport/udp.rs b/src/transport/udp.rs index 94c54bc3..850ef41e 100644 --- a/src/transport/udp.rs +++ b/src/transport/udp.rs @@ -142,7 +142,7 @@ impl UdpHeader { /// Reads a udp header from a slice directly and returns a tuple containing the resulting header & unused part of the slice. #[deprecated( - since = "0.10.0", + since = "0.10.1", note = "Use UdpHeader::from_slice instead." )] #[inline]