mirror of
https://github.com/rancher/plugins.git
synced 2025-09-09 09:18:35 +00:00
vendor folder bump.
This commit is contained in:
8
vendor/golang.org/x/net/ipv4/icmp_linux.go
generated
vendored
8
vendor/golang.org/x/net/ipv4/icmp_linux.go
generated
vendored
@@ -4,15 +4,15 @@
|
||||
|
||||
package ipv4
|
||||
|
||||
func (f *sysICMPFilter) accept(typ ICMPType) {
|
||||
func (f *icmpFilter) accept(typ ICMPType) {
|
||||
f.Data &^= 1 << (uint32(typ) & 31)
|
||||
}
|
||||
|
||||
func (f *sysICMPFilter) block(typ ICMPType) {
|
||||
func (f *icmpFilter) block(typ ICMPType) {
|
||||
f.Data |= 1 << (uint32(typ) & 31)
|
||||
}
|
||||
|
||||
func (f *sysICMPFilter) setAll(block bool) {
|
||||
func (f *icmpFilter) setAll(block bool) {
|
||||
if block {
|
||||
f.Data = 1<<32 - 1
|
||||
} else {
|
||||
@@ -20,6 +20,6 @@ func (f *sysICMPFilter) setAll(block bool) {
|
||||
}
|
||||
}
|
||||
|
||||
func (f *sysICMPFilter) willBlock(typ ICMPType) bool {
|
||||
func (f *icmpFilter) willBlock(typ ICMPType) bool {
|
||||
return f.Data&(1<<(uint32(typ)&31)) != 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user