zsys_netbsd.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_netbsd.go
  3. package route
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_ROUTE = 0x22
  8. sysAF_LINK = 0x12
  9. sysAF_INET6 = 0x18
  10. sysNET_RT_DUMP = 0x1
  11. sysNET_RT_FLAGS = 0x2
  12. sysNET_RT_IFLIST = 0x5
  13. sysNET_RT_MAXID = 0x6
  14. )
  15. const (
  16. sysCTL_MAXNAME = 0xc
  17. sysCTL_UNSPEC = 0x0
  18. sysCTL_KERN = 0x1
  19. sysCTL_VM = 0x2
  20. sysCTL_VFS = 0x3
  21. sysCTL_NET = 0x4
  22. sysCTL_DEBUG = 0x5
  23. sysCTL_HW = 0x6
  24. sysCTL_MACHDEP = 0x7
  25. sysCTL_USER = 0x8
  26. sysCTL_DDB = 0x9
  27. sysCTL_PROC = 0xa
  28. sysCTL_VENDOR = 0xb
  29. sysCTL_EMUL = 0xc
  30. sysCTL_SECURITY = 0xd
  31. sysCTL_MAXID = 0xe
  32. )
  33. const (
  34. sysRTM_VERSION = 0x4
  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_IFANNOUNCE = 0x10
  49. sysRTM_IEEE80211 = 0x11
  50. sysRTM_SETGATE = 0x12
  51. sysRTM_LLINFO_UPD = 0x13
  52. sysRTM_IFINFO = 0x14
  53. sysRTM_CHGADDR = 0x15
  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. sysRTA_TAG = 0x100
  63. sysRTAX_DST = 0x0
  64. sysRTAX_GATEWAY = 0x1
  65. sysRTAX_NETMASK = 0x2
  66. sysRTAX_GENMASK = 0x3
  67. sysRTAX_IFP = 0x4
  68. sysRTAX_IFA = 0x5
  69. sysRTAX_AUTHOR = 0x6
  70. sysRTAX_BRD = 0x7
  71. sysRTAX_TAG = 0x8
  72. sysRTAX_MAX = 0x9
  73. )
  74. const (
  75. sizeofIfMsghdrNetBSD7 = 0x98
  76. sizeofIfaMsghdrNetBSD7 = 0x18
  77. sizeofIfAnnouncemsghdrNetBSD7 = 0x18
  78. sizeofRtMsghdrNetBSD7 = 0x78
  79. sizeofRtMetricsNetBSD7 = 0x50
  80. )