Skip to content

Commit

Permalink
Updated version to 0.14.1 and aligned lib.rs example
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianSchmid committed Feb 5, 2024
1 parent e992c04 commit e6507bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog:

## 0.14.1

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

## 0.14.0

### Highlights
Expand Down
2 changes: 1 addition & 1 deletion etherparse/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "etherparse"
version = "0.14.0"
version = "0.14.1"
authors = ["Julian Schmid <[email protected]>"]
edition = "2021"
repository = "https://github.com/JulianSchmid/etherparse"
Expand Down
10 changes: 5 additions & 5 deletions etherparse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
//! Ok(value) => {
//! println!("link: {:?}", value.link);
//! println!("vlan: {:?}", value.vlan);
//! println!("net: {:?}", value.net);
//! println!("net: {:?}", value.net); // contains ip
//! println!("transport: {:?}", value.transport);
//! }
//! }
Expand Down Expand Up @@ -98,7 +98,7 @@
//! Ok(value) => {
//! println!("link: {:?}", value.link);
//! println!("vlan: {:?}", value.vlan);
//! println!("net: {:?}", value.net);
//! println!("net: {:?}", value.net); // contains ip
//! println!("transport: {:?}", value.transport);
//! }
//! }
Expand Down Expand Up @@ -178,7 +178,7 @@
//!
//! 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.14.0/examples/write_udp.rs)
//! [Example:](https://github.com/JulianSchmid/etherparse/blob/0.14.1/examples/write_udp.rs)
//! ```rust
//! use etherparse::PacketBuilder;
//!
Expand All @@ -203,14 +203,14 @@
//! builder.write(&mut result, &payload).unwrap();
//! ```
//!
//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.14.0/examples/write_tcp.rs) available.
//! There is also an [example for TCP packets](https://github.com/JulianSchmid/etherparse/blob/0.14.1/examples/write_tcp.rs) available.
//!
//! Check out the [PacketBuilder documentation](struct.PacketBuilder.html) for more information.
//!
//! ## Manually serializing each header
//!
//! Alternatively it is possible to manually build a packet
//! ([example](https://github.com/JulianSchmid/etherparse/blob/0.14.0/examples/write_ipv4_udp.rs)).
//! ([example](https://github.com/JulianSchmid/etherparse/blob/0.14.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
Expand Down

0 comments on commit e6507bc

Please sign in to comment.