diff --git a/net/src/packet/hash.rs b/net/src/packet/hash.rs index cbf1aa32c..b843fe2fd 100644 --- a/net/src/packet/hash.rs +++ b/net/src/packet/hash.rs @@ -38,7 +38,16 @@ impl Packet { udp.source().hash(state); udp.destination().hash(state); } - &Transport::Icmp4(_) | &Transport::Icmp6(_) => {} + Transport::Icmp4(icmp4) => { + if let Some(id) = icmp4.identifier() { + id.hash(state); + } + } + Transport::Icmp6(icmp6) => { + if let Some(id) = icmp6.identifier() { + id.hash(state); + } + } } } }