zsys_netbsd_386.go 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_netbsd.go
  3. package socket
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0x18
  8. sysSOCK_RAW = 0x3
  9. )
  10. type iovec struct {
  11. Base *byte
  12. Len uint32
  13. }
  14. type msghdr struct {
  15. Name *byte
  16. Namelen uint32
  17. Iov *iovec
  18. Iovlen int32
  19. Control *byte
  20. Controllen uint32
  21. Flags int32
  22. }
  23. type mmsghdr struct {
  24. Hdr msghdr
  25. Len uint32
  26. }
  27. type cmsghdr struct {
  28. Len uint32
  29. Level int32
  30. Type int32
  31. }
  32. type sockaddrInet struct {
  33. Len uint8
  34. Family uint8
  35. Port uint16
  36. Addr [4]byte /* in_addr */
  37. Zero [8]int8
  38. }
  39. type sockaddrInet6 struct {
  40. Len uint8
  41. Family uint8
  42. Port uint16
  43. Flowinfo uint32
  44. Addr [16]byte /* in6_addr */
  45. Scope_id uint32
  46. }
  47. const (
  48. sizeofIovec = 0x8
  49. sizeofMsghdr = 0x1c
  50. sizeofMmsghdr = 0x20
  51. sizeofCmsghdr = 0xc
  52. sizeofSockaddrInet = 0x10
  53. sizeofSockaddrInet6 = 0x1c
  54. )