net/packet: generate ICMP destination unreachable packets
Updates tailscale/corp#34257 Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
@@ -49,6 +49,10 @@ type ICMP4Code uint8
|
||||
|
||||
const (
|
||||
ICMP4NoCode ICMP4Code = 0
|
||||
|
||||
// ICMP4HostUnreachable is the code used with ICMP4Unreachable to
|
||||
// indicate that the destination host could not be reached.
|
||||
ICMP4HostUnreachable ICMP4Code = 1
|
||||
)
|
||||
|
||||
// ICMP4Header is an IPv4+ICMPv4 header.
|
||||
|
||||
Reference in New Issue
Block a user