zsys_openbsd.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_openbsd.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 = 0x18
  10. sysSOCK_RAW = 0x3
  11. sysNET_RT_DUMP = 0x1
  12. sysNET_RT_FLAGS = 0x2
  13. sysNET_RT_IFLIST = 0x3
  14. sysNET_RT_STATS = 0x4
  15. sysNET_RT_TABLE = 0x5
  16. sysNET_RT_IFNAMES = 0x6
  17. sysNET_RT_MAXID = 0x7
  18. )
  19. const (
  20. sysCTL_MAXNAME = 0xc
  21. sysCTL_UNSPEC = 0x0
  22. sysCTL_KERN = 0x1
  23. sysCTL_VM = 0x2
  24. sysCTL_FS = 0x3
  25. sysCTL_NET = 0x4
  26. sysCTL_DEBUG = 0x5
  27. sysCTL_HW = 0x6
  28. sysCTL_MACHDEP = 0x7
  29. sysCTL_DDB = 0x9
  30. sysCTL_VFS = 0xa
  31. sysCTL_MAXID = 0xb
  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_RESOLVE = 0xb
  44. sysRTM_NEWADDR = 0xc
  45. sysRTM_DELADDR = 0xd
  46. sysRTM_IFINFO = 0xe
  47. sysRTM_IFANNOUNCE = 0xf
  48. sysRTM_DESYNC = 0x10
  49. sysRTM_INVALIDATE = 0x11
  50. sysRTM_BFD = 0x12
  51. sysRTM_PROPOSAL = 0x13
  52. sysRTA_DST = 0x1
  53. sysRTA_GATEWAY = 0x2
  54. sysRTA_NETMASK = 0x4
  55. sysRTA_GENMASK = 0x8
  56. sysRTA_IFP = 0x10
  57. sysRTA_IFA = 0x20
  58. sysRTA_AUTHOR = 0x40
  59. sysRTA_BRD = 0x80
  60. sysRTA_SRC = 0x100
  61. sysRTA_SRCMASK = 0x200
  62. sysRTA_LABEL = 0x400
  63. sysRTA_BFD = 0x800
  64. sysRTA_DNS = 0x1000
  65. sysRTA_STATIC = 0x2000
  66. sysRTA_SEARCH = 0x4000
  67. sysRTAX_DST = 0x0
  68. sysRTAX_GATEWAY = 0x1
  69. sysRTAX_NETMASK = 0x2
  70. sysRTAX_GENMASK = 0x3
  71. sysRTAX_IFP = 0x4
  72. sysRTAX_IFA = 0x5
  73. sysRTAX_AUTHOR = 0x6
  74. sysRTAX_BRD = 0x7
  75. sysRTAX_SRC = 0x8
  76. sysRTAX_SRCMASK = 0x9
  77. sysRTAX_LABEL = 0xa
  78. sysRTAX_BFD = 0xb
  79. sysRTAX_DNS = 0xc
  80. sysRTAX_STATIC = 0xd
  81. sysRTAX_SEARCH = 0xe
  82. sysRTAX_MAX = 0xf
  83. )
  84. const (
  85. sizeofRtMsghdr = 0x60
  86. sizeofSockaddrStorage = 0x100
  87. sizeofSockaddrInet = 0x10
  88. sizeofSockaddrInet6 = 0x1c
  89. )