update packages

This commit is contained in:
fatedier
2017-06-04 20:47:24 +08:00
parent 84341b7fcc
commit 3a4d769bb3
189 changed files with 6677 additions and 1897 deletions

View File

@@ -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
}