diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-23 13:25:33 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 13:25:33 -0700 |
commit | fc26b3764ecfe4f5a5eb7826a9fb46626738b391 (patch) | |
tree | c43fdaefe2c8f14d39da88cb4b4dc39b0b90c5f6 /pkg/tcpip/network/ipv4/icmp.go | |
parent | 20b556e625354dd8330e30e4075ad06eedc6a2ce (diff) | |
parent | fb8be7e6273f5a646cdf48e38743a2507a4bf64f (diff) |
Merge pull request #3207 from kevinGC:icmp-connect
PiperOrigin-RevId: 322853192
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) |