diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-23 20:28:10 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 20:28:10 +0000 |
commit | f9bfad6ab765dc4de1be6ed04048f8c6374a2a97 (patch) | |
tree | 9656eee8a90d1a5c1bcdd30dab1c2cb8d5640ab5 /pkg/tcpip/network/ipv4/icmp.go | |
parent | 0db3b8663c5e94284254ce60244197313f1e4fc2 (diff) | |
parent | fc26b3764ecfe4f5a5eb7826a9fb46626738b391 (diff) |
Merge release-20200622.1-198-gfc26b3764 (automated)
Diffstat (limited to 'pkg/tcpip/network/ipv4/icmp.go')
-rw-r--r-- | pkg/tcpip/network/ipv4/icmp.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/network/ipv4/icmp.go b/pkg/tcpip/network/ipv4/icmp.go index 1b67aa066..83e71cb8c 100644 --- a/pkg/tcpip/network/ipv4/icmp.go +++ b/pkg/tcpip/network/ipv4/icmp.go @@ -129,6 +129,9 @@ func (e *endpoint) handleICMP(r *stack.Route, pkt *stack.PacketBuffer) { pkt.Data.TrimFront(header.ICMPv4MinimumSize) switch h.Code() { + case header.ICMPv4HostUnreachable: + e.handleControl(stack.ControlNoRoute, 0, pkt) + case header.ICMPv4PortUnreachable: e.handleControl(stack.ControlPortUnreachable, 0, pkt) |