gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

icmp_stub.go (474B)


      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 }