Skip to content

Commit 4a71be5

Browse files
committed
Corrected docs.rs links in README
1 parent e6507bc commit 4a71be5

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ It is also possible to only slice one packet layer:
9999

100100
* [`Ethernet2Slice::from_slice_without_fcs`](https://docs.rs/etherparse/~0/etherparse/struct.Ethernet2Slice.html#method.from_slice_without_fcs) & [`Ethernet2Slice::from_slice_with_crc32_fcs`](https://docs.rs/etherparse/~0/etherparse/struct.Ethernet2Slice.html#method.from_slice_with_crc32_fcs)
101101
* [`SingleVlanSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.SingleVlanSlice.html#method.from_slice) & [`DoubleVlanSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.DoubleVlanSlice.html#method.from_slice)
102-
* [`IpSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.IpSlice.html#method.from_slice) & [`LaxIpSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.LaxIpSlice.html#method.from_slice)
102+
* [`IpSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/enum.IpSlice.html#method.from_slice) & [`LaxIpSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/enum.LaxIpSlice.html#method.from_slice)
103103
* [`Ipv4Slice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv4Slice.html#method.from_slice) & [`LaxIpv4Slice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.LaxIpv4Slice.html#method.from_slice)
104104
* [`Ipv6Slice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv6Slice.html#method.from_slice) & [`LaxIpv6Slice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.LaxIpv6Slice.html#method.from_slice)
105105
* [`UdpSlice::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.UdpSlice.html#method.from_slice) & [`UdpSlice::from_slice_lax`](https://docs.rs/etherparse/~0/etherparse/struct.UdpSlice.html#method.from_slice_lax)
@@ -135,7 +135,7 @@ And for deserialization into the corresponding header structs have a look at:
135135
* [`Ethernet2Header::read`](https://docs.rs/etherparse/~0/etherparse/struct.Ethernet2Header.html#method.read) & [`Ethernet2Header::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ethernet2Header.html#method.from_slice)
136136
* [`SingleVlanHeader::read`](https://docs.rs/etherparse/~0/etherparse/struct.SingleVlanHeader.html#method.read) & [`SingleVlanHeader::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.SingleVlanHeader.html#method.from_slice)
137137
* [`DoubleVlanHeader::read`](https://docs.rs/etherparse/~0/etherparse/struct.DoubleVlanHeader.html#method.read) & [`DoubleVlanHeader::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.DoubleVlanHeader.html#method.from_slice)
138-
* [`IpHeaders::read`](https://docs.rs/etherparse/~0/etherparse/struct.IpHeaders.html#method.read) & [`IpHeaders::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.IpHeaders.html#method.from_slice)
138+
* [`IpHeaders::read`](https://docs.rs/etherparse/~0/etherparse/enum.IpHeaders.html#method.read) & [`IpHeaders::from_slice`](https://docs.rs/etherparse/~0/etherparse/enum.IpHeaders.html#method.from_slice)
139139
* [`Ipv4Header::read`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv4Header.html#method.read) & [`Ipv4Header::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv4Header.html#method.from_slice)
140140
* [`Ipv4Extensions::read`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv4Extensions.html#method.read) & [`Ipv4Extensions::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv4Extensions.html#method.from_slice)
141141
* [`Ipv6Header::read`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv6Header.html#method.read) & [`Ipv6Header::from_slice`](https://docs.rs/etherparse/~0/etherparse/struct.Ipv6Header.html#method.from_slice)

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog:
22

3+
## 0.14.2
4+
5+
Corrected enum docs.rs links in README.md (for `IpSlice` & `IpHeaders`).
6+
37
## 0.14.1
48

59
Corrected example in README.md (replaced `ip` with `net`).

etherparse/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "etherparse"
3-
version = "0.14.1"
3+
version = "0.14.2"
44
authors = ["Julian Schmid <info@julianschmid.name>"]
55
edition = "2021"
66
repository = "https://github.com/JulianSchmid/etherparse"

etherparse/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
//!
179179
//! 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).
180180
//!
181-
//! [Example:](https://github.com/JulianSchmid/etherparse/blob/0.14.1/examples/write_udp.rs)
181+
//! [Example:](https://github.com/JulianSchmid/etherparse/blob/0.14.2/examples/write_udp.rs)
182182
//! ```rust
183183
//! use etherparse::PacketBuilder;
184184
//!
@@ -203,14 +203,14 @@
203203
//! builder.write(&mut result, &payload).unwrap();
204204
//! ```
205205
//!
206-
//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.14.1/examples/write_tcp.rs) available.
206+
//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.14.2/examples/write_tcp.rs) available.
207207
//!
208208
//! Check out the [PacketBuilder documentation](struct.PacketBuilder.html) for more information.
209209
//!
210210
//! ## Manually serializing each header
211211
//!
212212
//! Alternatively it is possible to manually build a packet
213-
//! ([example](https://github.com/JulianSchmid/etherparse/blob/0.14.1/examples/write_ipv4_udp.rs)).
213+
//! ([example](https://github.com/JulianSchmid/etherparse/blob/0.14.2/examples/write_ipv4_udp.rs)).
214214
//! Generally each struct representing a header has a "write" method that allows it to be
215215
//! serialized. These write methods sometimes automatically calculate checksums and fill them
216216
//! in. In case this is unwanted behavior (e.g. if you want to generate a packet with an invalid

etherparse_proptest_generators/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "etherparse_proptest_generators"
3-
version = "0.14.1"
3+
version = "0.14.2"
44
authors = ["Julian Schmid <info@julianschmid.name>"]
55
edition = "2021"
66
repository = "https://github.com/JulianSchmid/etherparse"

0 commit comments

Comments
 (0)