Mikio Hara | d3003be | 2013-11-05 10:09:42 +0900 | [diff] [blame] | 1 | // Copyright 2013 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 | package ipv6 | ||||
6 | |||||
7 | type sysSockoptLen uint32 | ||||
8 | |||||
9 | const ( | ||||
10 | sysSizeofPacketInfo = 0x14 | ||||
11 | sysSizeofMulticastReq = 0x14 | ||||
12 | sysSizeofICMPFilter = 0x20 | ||||
13 | ) | ||||
14 | |||||
15 | type sysPacketInfo struct { | ||||
16 | IP [16]byte | ||||
17 | IfIndex uint32 | ||||
18 | } | ||||
19 | |||||
20 | type sysMulticastReq struct { | ||||
21 | IP [16]byte | ||||
22 | IfIndex uint32 | ||||
23 | } |