Skip to content

Commit

Permalink
Add ICMP Destination unreachable Next-hop MTU
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi321 committed Nov 20, 2023
1 parent 87f362d commit 30f22c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pnet_packet/src/icmp.rs
Expand Up @@ -321,7 +321,7 @@ pub mod destination_unreachable {
//! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//! | Type | Code | Checksum |
//! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//! | unused |
//! | unused | Next-hop MTU |
//! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//! | Internet Header + 64 bits of Original Data Datagram |
//! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Expand Down Expand Up @@ -381,7 +381,8 @@ pub mod destination_unreachable {
#[construct_with(u8)]
pub icmp_code: IcmpCode,
pub checksum: u16be,
pub unused: u32be,
pub unused: u16be,
pub next_hop_mtu: u16be,
#[payload]
pub payload: Vec<u8>,
}
Expand Down

0 comments on commit 30f22c3

Please sign in to comment.