zsys_solaris.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_solaris.go
  3. package ipv4
  4. const (
  5. sysIP_OPTIONS = 0x1
  6. sysIP_HDRINCL = 0x2
  7. sysIP_TOS = 0x3
  8. sysIP_TTL = 0x4
  9. sysIP_RECVOPTS = 0x5
  10. sysIP_RECVRETOPTS = 0x6
  11. sysIP_RECVDSTADDR = 0x7
  12. sysIP_RETOPTS = 0x8
  13. sysIP_RECVIF = 0x9
  14. sysIP_RECVSLLA = 0xa
  15. sysIP_RECVTTL = 0xb
  16. sysIP_MULTICAST_IF = 0x10
  17. sysIP_MULTICAST_TTL = 0x11
  18. sysIP_MULTICAST_LOOP = 0x12
  19. sysIP_ADD_MEMBERSHIP = 0x13
  20. sysIP_DROP_MEMBERSHIP = 0x14
  21. sysIP_BLOCK_SOURCE = 0x15
  22. sysIP_UNBLOCK_SOURCE = 0x16
  23. sysIP_ADD_SOURCE_MEMBERSHIP = 0x17
  24. sysIP_DROP_SOURCE_MEMBERSHIP = 0x18
  25. sysIP_NEXTHOP = 0x19
  26. sysIP_PKTINFO = 0x1a
  27. sysIP_RECVPKTINFO = 0x1a
  28. sysIP_DONTFRAG = 0x1b
  29. sysIP_BOUND_IF = 0x41
  30. sysIP_UNSPEC_SRC = 0x42
  31. sysIP_BROADCAST_TTL = 0x43
  32. sysIP_DHCPINIT_IF = 0x45
  33. sysIP_REUSEADDR = 0x104
  34. sysIP_DONTROUTE = 0x105
  35. sysIP_BROADCAST = 0x106
  36. sysMCAST_JOIN_GROUP = 0x29
  37. sysMCAST_LEAVE_GROUP = 0x2a
  38. sysMCAST_BLOCK_SOURCE = 0x2b
  39. sysMCAST_UNBLOCK_SOURCE = 0x2c
  40. sysMCAST_JOIN_SOURCE_GROUP = 0x2d
  41. sysMCAST_LEAVE_SOURCE_GROUP = 0x2e
  42. sizeofSockaddrStorage = 0x100
  43. sizeofSockaddrInet = 0x10
  44. sizeofInetPktinfo = 0xc
  45. sizeofIPMreq = 0x8
  46. sizeofIPMreqSource = 0xc
  47. sizeofGroupReq = 0x104
  48. sizeofGroupSourceReq = 0x204
  49. )
  50. type sockaddrStorage struct {
  51. Family uint16
  52. X_ss_pad1 [6]int8
  53. X_ss_align float64
  54. X_ss_pad2 [240]int8
  55. }
  56. type sockaddrInet struct {
  57. Family uint16
  58. Port uint16
  59. Addr [4]byte /* in_addr */
  60. Zero [8]int8
  61. }
  62. type inetPktinfo struct {
  63. Ifindex uint32
  64. Spec_dst [4]byte /* in_addr */
  65. Addr [4]byte /* in_addr */
  66. }
  67. type ipMreq struct {
  68. Multiaddr [4]byte /* in_addr */
  69. Interface [4]byte /* in_addr */
  70. }
  71. type ipMreqSource struct {
  72. Multiaddr [4]byte /* in_addr */
  73. Sourceaddr [4]byte /* in_addr */
  74. Interface [4]byte /* in_addr */
  75. }
  76. type groupReq struct {
  77. Interface uint32
  78. Pad_cgo_0 [256]byte
  79. }
  80. type groupSourceReq struct {
  81. Interface uint32
  82. Pad_cgo_0 [256]byte
  83. Pad_cgo_1 [256]byte
  84. }