Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 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 | |
Russ Cox | 5f55cee | 2021-02-19 18:54:43 -0500 | [diff] [blame] | 5 | //go:build !linux |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 6 | |
| 7 | package ipv4 |
| 8 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 9 | const sizeofICMPFilter = 0x0 |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 10 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 11 | type icmpFilter struct { |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 12 | } |
| 13 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 14 | func (f *icmpFilter) accept(typ ICMPType) { |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 15 | } |
| 16 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 17 | func (f *icmpFilter) block(typ ICMPType) { |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 18 | } |
| 19 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 20 | func (f *icmpFilter) setAll(block bool) { |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 21 | } |
| 22 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 23 | func (f *icmpFilter) willBlock(typ ICMPType) bool { |
Mikio Hara | e92559f | 2014-12-04 17:31:40 +0900 | [diff] [blame] | 24 | return false |
| 25 | } |