Fix ICMP error returned by EthernetInterface for unknown IP protocols.

This commit is contained in:
whitequark 2017-07-24 07:07:43 +00:00
parent 936bd44f8f
commit d35fd9940e
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ impl<'a, 'b, 'c, DeviceT: Device + 'a> Interface<'a, 'b, 'c, DeviceT> {
Ok(Response::Nop),
_ => {
let icmp_reply_repr = Icmpv4Repr::DstUnreachable {
reason: Icmpv4DstUnreachable::PortUnreachable,
reason: Icmpv4DstUnreachable::ProtoUnreachable,
header: ipv4_repr,
data: &ipv4_packet.payload()[0..8]
};