Never allow permanent verdicts for ICMP connections
This commit is contained in:
@@ -73,3 +73,14 @@ func IsStreamProtocol(protocol uint8) bool {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
// IsICMP returns whether the given protocol is ICMP or ICMPv6.
|
||||
func IsICMP(protocol uint8) bool {
|
||||
switch protocol {
|
||||
case 1, // ICMP
|
||||
58: // ICMP6
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user