net/packet: generate ICMP destination unreachable packets
Updates tailscale/corp#34257 Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
@@ -52,6 +52,11 @@ type ICMP6Code uint8
|
||||
|
||||
const (
|
||||
ICMP6NoCode ICMP6Code = 0
|
||||
|
||||
// ICMP6AddressUnreachable is the code used with ICMP6Unreachable to
|
||||
// indicate that the destination address could not be reached. It is
|
||||
// the IPv6 equivalent of ICMP4HostUnreachable.
|
||||
ICMP6AddressUnreachable ICMP6Code = 3
|
||||
)
|
||||
|
||||
// ICMP6Header is an IPv4+ICMPv4 header.
|
||||
|
||||
Reference in New Issue
Block a user