defs_netbsd.go 932 B

12345678910111213141516171819202122232425262728293031323334353637
  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. // +build ignore
  5. // +godefs map struct_in_addr [4]byte /* in_addr */
  6. package ipv4
  7. /*
  8. #include <netinet/in.h>
  9. */
  10. import "C"
  11. const (
  12. sysIP_OPTIONS = C.IP_OPTIONS
  13. sysIP_HDRINCL = C.IP_HDRINCL
  14. sysIP_TOS = C.IP_TOS
  15. sysIP_TTL = C.IP_TTL
  16. sysIP_RECVOPTS = C.IP_RECVOPTS
  17. sysIP_RECVRETOPTS = C.IP_RECVRETOPTS
  18. sysIP_RECVDSTADDR = C.IP_RECVDSTADDR
  19. sysIP_RETOPTS = C.IP_RETOPTS
  20. sysIP_RECVIF = C.IP_RECVIF
  21. sysIP_RECVTTL = C.IP_RECVTTL
  22. sysIP_MULTICAST_IF = C.IP_MULTICAST_IF
  23. sysIP_MULTICAST_TTL = C.IP_MULTICAST_TTL
  24. sysIP_MULTICAST_LOOP = C.IP_MULTICAST_LOOP
  25. sysIP_ADD_MEMBERSHIP = C.IP_ADD_MEMBERSHIP
  26. sysIP_DROP_MEMBERSHIP = C.IP_DROP_MEMBERSHIP
  27. sizeofIPMreq = C.sizeof_struct_ip_mreq
  28. )
  29. type ipMreq C.struct_ip_mreq