zsys_darwin.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_darwin.go
  3. package route
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_ROUTE = 0x11
  8. sysAF_LINK = 0x12
  9. sysAF_INET6 = 0x1e
  10. sysNET_RT_DUMP = 0x1
  11. sysNET_RT_FLAGS = 0x2
  12. sysNET_RT_IFLIST = 0x3
  13. sysNET_RT_STAT = 0x4
  14. sysNET_RT_TRASH = 0x5
  15. sysNET_RT_IFLIST2 = 0x6
  16. sysNET_RT_DUMP2 = 0x7
  17. sysNET_RT_MAXID = 0xa
  18. )
  19. const (
  20. sysCTL_MAXNAME = 0xc
  21. sysCTL_UNSPEC = 0x0
  22. sysCTL_KERN = 0x1
  23. sysCTL_VM = 0x2
  24. sysCTL_VFS = 0x3
  25. sysCTL_NET = 0x4
  26. sysCTL_DEBUG = 0x5
  27. sysCTL_HW = 0x6
  28. sysCTL_MACHDEP = 0x7
  29. sysCTL_USER = 0x8
  30. sysCTL_MAXID = 0x9
  31. )
  32. const (
  33. sysRTM_VERSION = 0x5
  34. sysRTM_ADD = 0x1
  35. sysRTM_DELETE = 0x2
  36. sysRTM_CHANGE = 0x3
  37. sysRTM_GET = 0x4
  38. sysRTM_LOSING = 0x5
  39. sysRTM_REDIRECT = 0x6
  40. sysRTM_MISS = 0x7
  41. sysRTM_LOCK = 0x8
  42. sysRTM_OLDADD = 0x9
  43. sysRTM_OLDDEL = 0xa
  44. sysRTM_RESOLVE = 0xb
  45. sysRTM_NEWADDR = 0xc
  46. sysRTM_DELADDR = 0xd
  47. sysRTM_IFINFO = 0xe
  48. sysRTM_NEWMADDR = 0xf
  49. sysRTM_DELMADDR = 0x10
  50. sysRTM_IFINFO2 = 0x12
  51. sysRTM_NEWMADDR2 = 0x13
  52. sysRTM_GET2 = 0x14
  53. sysRTA_DST = 0x1
  54. sysRTA_GATEWAY = 0x2
  55. sysRTA_NETMASK = 0x4
  56. sysRTA_GENMASK = 0x8
  57. sysRTA_IFP = 0x10
  58. sysRTA_IFA = 0x20
  59. sysRTA_AUTHOR = 0x40
  60. sysRTA_BRD = 0x80
  61. sysRTAX_DST = 0x0
  62. sysRTAX_GATEWAY = 0x1
  63. sysRTAX_NETMASK = 0x2
  64. sysRTAX_GENMASK = 0x3
  65. sysRTAX_IFP = 0x4
  66. sysRTAX_IFA = 0x5
  67. sysRTAX_AUTHOR = 0x6
  68. sysRTAX_BRD = 0x7
  69. sysRTAX_MAX = 0x8
  70. )
  71. const (
  72. sizeofIfMsghdrDarwin15 = 0x70
  73. sizeofIfaMsghdrDarwin15 = 0x14
  74. sizeofIfmaMsghdrDarwin15 = 0x10
  75. sizeofIfMsghdr2Darwin15 = 0xa0
  76. sizeofIfmaMsghdr2Darwin15 = 0x14
  77. sizeofIfDataDarwin15 = 0x60
  78. sizeofIfData64Darwin15 = 0x80
  79. sizeofRtMsghdrDarwin15 = 0x5c
  80. sizeofRtMsghdr2Darwin15 = 0x5c
  81. sizeofRtMetricsDarwin15 = 0x38
  82. )