icmp_stub.go 474 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build !linux
  5. // +build !linux
  6. package ipv4
  7. const sizeofICMPFilter = 0x0
  8. type icmpFilter struct {
  9. }
  10. func (f *icmpFilter) accept(typ ICMPType) {
  11. }
  12. func (f *icmpFilter) block(typ ICMPType) {
  13. }
  14. func (f *icmpFilter) setAll(block bool) {
  15. }
  16. func (f *icmpFilter) willBlock(typ ICMPType) bool {
  17. return false
  18. }