| // Copyright 2013 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // An ICMPType represents a type of ICMP message. |
| func (typ ICMPType) String() string { |
| // An ICMPFilter represents an ICMP message filter for incoming |
| // Set sets the ICMP type and filter action to the filter. |
| func (f *ICMPFilter) Set(typ ICMPType, block bool) { |
| // SetAll sets the filter action to the filter. |
| func (f *ICMPFilter) SetAll(block bool) { |
| // WillBlock reports whether the ICMP type will be blocked. |
| func (f *ICMPFilter) WillBlock(typ ICMPType) bool { |