gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/ipv4/icmp_stub.go (about)

     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  
     5  //go:build !linux
     6  // +build !linux
     7  
     8  package ipv4
     9  
    10  const sizeofICMPFilter = 0x0
    11  
    12  type icmpFilter struct {
    13  }
    14  
    15  func (f *icmpFilter) accept(typ ICMPType) {
    16  }
    17  
    18  func (f *icmpFilter) block(typ ICMPType) {
    19  }
    20  
    21  func (f *icmpFilter) setAll(block bool) {
    22  }
    23  
    24  func (f *icmpFilter) willBlock(typ ICMPType) bool {
    25  	return false
    26  }