icmp_stub.go 456 B

12345678910111213141516171819202122232425
  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. // +build !linux
  5. package ipv4
  6. const sizeofICMPFilter = 0x0
  7. type icmpFilter struct {
  8. }
  9. func (f *icmpFilter) accept(typ ICMPType) {
  10. }
  11. func (f *icmpFilter) block(typ ICMPType) {
  12. }
  13. func (f *icmpFilter) setAll(block bool) {
  14. }
  15. func (f *icmpFilter) willBlock(typ ICMPType) bool {
  16. return false
  17. }