You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
1.9 KiB

  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. sysSOCK_RAW = 0x3
  11. sysNET_RT_DUMP = 0x1
  12. sysNET_RT_FLAGS = 0x2
  13. sysNET_RT_IFLIST = 0x3
  14. sysNET_RT_STAT = 0x4
  15. sysNET_RT_TRASH = 0x5
  16. sysNET_RT_IFLIST2 = 0x6
  17. sysNET_RT_DUMP2 = 0x7
  18. sysNET_RT_MAXID = 0xa
  19. )
  20. const (
  21. sysCTL_MAXNAME = 0xc
  22. sysCTL_UNSPEC = 0x0
  23. sysCTL_KERN = 0x1
  24. sysCTL_VM = 0x2
  25. sysCTL_VFS = 0x3
  26. sysCTL_NET = 0x4
  27. sysCTL_DEBUG = 0x5
  28. sysCTL_HW = 0x6
  29. sysCTL_MACHDEP = 0x7
  30. sysCTL_USER = 0x8
  31. sysCTL_MAXID = 0x9
  32. )
  33. const (
  34. sysRTM_VERSION = 0x5
  35. sysRTM_ADD = 0x1
  36. sysRTM_DELETE = 0x2
  37. sysRTM_CHANGE = 0x3
  38. sysRTM_GET = 0x4
  39. sysRTM_LOSING = 0x5
  40. sysRTM_REDIRECT = 0x6
  41. sysRTM_MISS = 0x7
  42. sysRTM_LOCK = 0x8
  43. sysRTM_OLDADD = 0x9
  44. sysRTM_OLDDEL = 0xa
  45. sysRTM_RESOLVE = 0xb
  46. sysRTM_NEWADDR = 0xc
  47. sysRTM_DELADDR = 0xd
  48. sysRTM_IFINFO = 0xe
  49. sysRTM_NEWMADDR = 0xf
  50. sysRTM_DELMADDR = 0x10
  51. sysRTM_IFINFO2 = 0x12
  52. sysRTM_NEWMADDR2 = 0x13
  53. sysRTM_GET2 = 0x14
  54. sysRTA_DST = 0x1
  55. sysRTA_GATEWAY = 0x2
  56. sysRTA_NETMASK = 0x4
  57. sysRTA_GENMASK = 0x8
  58. sysRTA_IFP = 0x10
  59. sysRTA_IFA = 0x20
  60. sysRTA_AUTHOR = 0x40
  61. sysRTA_BRD = 0x80
  62. sysRTAX_DST = 0x0
  63. sysRTAX_GATEWAY = 0x1
  64. sysRTAX_NETMASK = 0x2
  65. sysRTAX_GENMASK = 0x3
  66. sysRTAX_IFP = 0x4
  67. sysRTAX_IFA = 0x5
  68. sysRTAX_AUTHOR = 0x6
  69. sysRTAX_BRD = 0x7
  70. sysRTAX_MAX = 0x8
  71. )
  72. const (
  73. sizeofIfMsghdrDarwin15 = 0x70
  74. sizeofIfaMsghdrDarwin15 = 0x14
  75. sizeofIfmaMsghdrDarwin15 = 0x10
  76. sizeofIfMsghdr2Darwin15 = 0xa0
  77. sizeofIfmaMsghdr2Darwin15 = 0x14
  78. sizeofIfDataDarwin15 = 0x60
  79. sizeofIfData64Darwin15 = 0x80
  80. sizeofRtMsghdrDarwin15 = 0x5c
  81. sizeofRtMsghdr2Darwin15 = 0x5c
  82. sizeofRtMetricsDarwin15 = 0x38
  83. sizeofSockaddrStorage = 0x80
  84. sizeofSockaddrInet = 0x10
  85. sizeofSockaddrInet6 = 0x1c
  86. )