zsys_solaris_amd64.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_solaris.go
  3. package lif
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0x1a
  8. sysSOCK_DGRAM = 0x1
  9. )
  10. type sockaddrStorage struct {
  11. Family uint16
  12. X_ss_pad1 [6]int8
  13. X_ss_align float64
  14. X_ss_pad2 [240]int8
  15. }
  16. const (
  17. sysLIFC_NOXMIT = 0x1
  18. sysLIFC_EXTERNAL_SOURCE = 0x2
  19. sysLIFC_TEMPORARY = 0x4
  20. sysLIFC_ALLZONES = 0x8
  21. sysLIFC_UNDER_IPMP = 0x10
  22. sysLIFC_ENABLED = 0x20
  23. sysSIOCGLIFADDR = -0x3f87968f
  24. sysSIOCGLIFDSTADDR = -0x3f87968d
  25. sysSIOCGLIFFLAGS = -0x3f87968b
  26. sysSIOCGLIFMTU = -0x3f879686
  27. sysSIOCGLIFNETMASK = -0x3f879683
  28. sysSIOCGLIFMETRIC = -0x3f879681
  29. sysSIOCGLIFNUM = -0x3ff3967e
  30. sysSIOCGLIFINDEX = -0x3f87967b
  31. sysSIOCGLIFSUBNET = -0x3f879676
  32. sysSIOCGLIFLNKINFO = -0x3f879674
  33. sysSIOCGLIFCONF = -0x3fef965b
  34. sysSIOCGLIFHWADDR = -0x3f879640
  35. )
  36. const (
  37. sysIFF_UP = 0x1
  38. sysIFF_BROADCAST = 0x2
  39. sysIFF_DEBUG = 0x4
  40. sysIFF_LOOPBACK = 0x8
  41. sysIFF_POINTOPOINT = 0x10
  42. sysIFF_NOTRAILERS = 0x20
  43. sysIFF_RUNNING = 0x40
  44. sysIFF_NOARP = 0x80
  45. sysIFF_PROMISC = 0x100
  46. sysIFF_ALLMULTI = 0x200
  47. sysIFF_INTELLIGENT = 0x400
  48. sysIFF_MULTICAST = 0x800
  49. sysIFF_MULTI_BCAST = 0x1000
  50. sysIFF_UNNUMBERED = 0x2000
  51. sysIFF_PRIVATE = 0x8000
  52. )
  53. const (
  54. sizeofLifnum = 0xc
  55. sizeofLifreq = 0x178
  56. sizeofLifconf = 0x18
  57. sizeofLifIfinfoReq = 0x10
  58. )
  59. type lifnum struct {
  60. Family uint16
  61. Pad_cgo_0 [2]byte
  62. Flags int32
  63. Count int32
  64. }
  65. type lifreq struct {
  66. Name [32]int8
  67. Lifru1 [4]byte
  68. Type uint32
  69. Lifru [336]byte
  70. }
  71. type lifconf struct {
  72. Family uint16
  73. Pad_cgo_0 [2]byte
  74. Flags int32
  75. Len int32
  76. Pad_cgo_1 [4]byte
  77. Lifcu [8]byte
  78. }
  79. type lifIfinfoReq struct {
  80. Maxhops uint8
  81. Pad_cgo_0 [3]byte
  82. Reachtime uint32
  83. Reachretrans uint32
  84. Maxmtu uint32
  85. }
  86. const (
  87. sysIFT_IPV4 = 0xc8
  88. sysIFT_IPV6 = 0xc9
  89. sysIFT_6TO4 = 0xca
  90. )