Files
plugins/vendor/golang.org/x/net/ipv4/icmp_stub.go

27 lines
474 B
Go
Raw Normal View History

2017-05-26 23:32:35 -05:00
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !linux
2017-05-26 23:32:35 -05:00
// +build !linux
package ipv4
2018-11-18 15:43:35 +02:00
const sizeofICMPFilter = 0x0
2017-05-26 23:32:35 -05:00
2018-11-18 15:43:35 +02:00
type icmpFilter struct {
2017-05-26 23:32:35 -05:00
}
2018-11-18 15:43:35 +02:00
func (f *icmpFilter) accept(typ ICMPType) {
2017-05-26 23:32:35 -05:00
}
2018-11-18 15:43:35 +02:00
func (f *icmpFilter) block(typ ICMPType) {
2017-05-26 23:32:35 -05:00
}
2018-11-18 15:43:35 +02:00
func (f *icmpFilter) setAll(block bool) {
2017-05-26 23:32:35 -05:00
}
2018-11-18 15:43:35 +02:00
func (f *icmpFilter) willBlock(typ ICMPType) bool {
2017-05-26 23:32:35 -05:00
return false
}