mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-21 10:27:30 +00:00
net/packet: allow more ICMP errors
We now allow some more ICMP errors to flow, specifically: - ICMP parameter problem in both IPv4 and IPv6 (corrupt headers) - ICMP Packet Too Big (for IPv6 PMTU) Updates #311 Updates #8102 Updates #11002 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:

committed by
James Tucker

parent
92ca770b8d
commit
f384742375
@@ -23,6 +23,7 @@ const (
|
||||
ICMP4EchoRequest ICMP4Type = 0x08
|
||||
ICMP4Unreachable ICMP4Type = 0x03
|
||||
ICMP4TimeExceeded ICMP4Type = 0x0b
|
||||
ICMP4ParamProblem ICMP4Type = 0x12
|
||||
)
|
||||
|
||||
func (t ICMP4Type) String() string {
|
||||
@@ -35,6 +36,8 @@ func (t ICMP4Type) String() string {
|
||||
return "Unreachable"
|
||||
case ICMP4TimeExceeded:
|
||||
return "TimeExceeded"
|
||||
case ICMP4ParamProblem:
|
||||
return "ParamProblem"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
|
Reference in New Issue
Block a user