sys.go 434 B

1234567891011121314151617181920212223
  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. package ipv6
  5. type sysSockoptLen uint32
  6. const (
  7. sysSizeofPacketInfo = 0x14
  8. sysSizeofMulticastReq = 0x14
  9. sysSizeofICMPFilter = 0x20
  10. )
  11. type sysPacketInfo struct {
  12. IP [16]byte
  13. IfIndex uint32
  14. }
  15. type sysMulticastReq struct {
  16. IP [16]byte
  17. IfIndex uint32
  18. }