sys_unix.go 732 B

1234567891011121314151617181920212223242526
  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. // +build darwin dragonfly freebsd linux netbsd openbsd
  5. package ipv6
  6. import "syscall"
  7. // RFC 3493 options
  8. const (
  9. sysSockoptUnicastHopLimit = syscall.IPV6_UNICAST_HOPS
  10. sysSockoptMulticastHopLimit = syscall.IPV6_MULTICAST_HOPS
  11. sysSockoptMulticastInterface = syscall.IPV6_MULTICAST_IF
  12. sysSockoptMulticastLoopback = syscall.IPV6_MULTICAST_LOOP
  13. sysSockoptJoinGroup = syscall.IPV6_JOIN_GROUP
  14. sysSockoptLeaveGroup = syscall.IPV6_LEAVE_GROUP
  15. )
  16. const sysSizeofMTUInfo = 0x20
  17. type sysMTUInfo struct {
  18. Addr syscall.RawSockaddrInet6
  19. MTU uint32
  20. }