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.

98 lines
2.0 KiB

  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_dragonfly.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 = 0x1c
  10. sysSOCK_RAW = 0x3
  11. sysNET_RT_DUMP = 0x1
  12. sysNET_RT_FLAGS = 0x2
  13. sysNET_RT_IFLIST = 0x3
  14. sysNET_RT_MAXID = 0x4
  15. )
  16. const (
  17. sysCTL_MAXNAME = 0xc
  18. sysCTL_UNSPEC = 0x0
  19. sysCTL_KERN = 0x1
  20. sysCTL_VM = 0x2
  21. sysCTL_VFS = 0x3
  22. sysCTL_NET = 0x4
  23. sysCTL_DEBUG = 0x5
  24. sysCTL_HW = 0x6
  25. sysCTL_MACHDEP = 0x7
  26. sysCTL_USER = 0x8
  27. sysCTL_P1003_1B = 0x9
  28. sysCTL_LWKT = 0xa
  29. sysCTL_MAXID = 0xb
  30. )
  31. const (
  32. sysRTM_VERSION = 0x6
  33. sysRTM_ADD = 0x1
  34. sysRTM_DELETE = 0x2
  35. sysRTM_CHANGE = 0x3
  36. sysRTM_GET = 0x4
  37. sysRTM_LOSING = 0x5
  38. sysRTM_REDIRECT = 0x6
  39. sysRTM_MISS = 0x7
  40. sysRTM_LOCK = 0x8
  41. sysRTM_OLDADD = 0x9
  42. sysRTM_OLDDEL = 0xa
  43. sysRTM_RESOLVE = 0xb
  44. sysRTM_NEWADDR = 0xc
  45. sysRTM_DELADDR = 0xd
  46. sysRTM_IFINFO = 0xe
  47. sysRTM_NEWMADDR = 0xf
  48. sysRTM_DELMADDR = 0x10
  49. sysRTM_IFANNOUNCE = 0x11
  50. sysRTM_IEEE80211 = 0x12
  51. sysRTA_DST = 0x1
  52. sysRTA_GATEWAY = 0x2
  53. sysRTA_NETMASK = 0x4
  54. sysRTA_GENMASK = 0x8
  55. sysRTA_IFP = 0x10
  56. sysRTA_IFA = 0x20
  57. sysRTA_AUTHOR = 0x40
  58. sysRTA_BRD = 0x80
  59. sysRTA_MPLS1 = 0x100
  60. sysRTA_MPLS2 = 0x200
  61. sysRTA_MPLS3 = 0x400
  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_MPLS1 = 0x8
  71. sysRTAX_MPLS2 = 0x9
  72. sysRTAX_MPLS3 = 0xa
  73. sysRTAX_MAX = 0xb
  74. )
  75. const (
  76. sizeofIfMsghdrDragonFlyBSD4 = 0xb0
  77. sizeofIfaMsghdrDragonFlyBSD4 = 0x14
  78. sizeofIfmaMsghdrDragonFlyBSD4 = 0x10
  79. sizeofIfAnnouncemsghdrDragonFlyBSD4 = 0x18
  80. sizeofRtMsghdrDragonFlyBSD4 = 0x98
  81. sizeofRtMetricsDragonFlyBSD4 = 0x70
  82. sizeofSockaddrStorage = 0x80
  83. sizeofSockaddrInet = 0x10
  84. sizeofSockaddrInet6 = 0x1c
  85. )