You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
456 B

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