zsys_netbsd.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Code generated by cmd/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. sysSOCK_RAW = 0x3
  11. sysNET_RT_DUMP = 0x1
  12. sysNET_RT_FLAGS = 0x2
  13. sysNET_RT_IFLIST = 0x5
  14. sysNET_RT_MAXID = 0x6
  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_DDB = 0x9
  28. sysCTL_PROC = 0xa
  29. sysCTL_VENDOR = 0xb
  30. sysCTL_EMUL = 0xc
  31. sysCTL_SECURITY = 0xd
  32. sysCTL_MAXID = 0xe
  33. )
  34. const (
  35. sysRTM_VERSION = 0x4
  36. sysRTM_ADD = 0x1
  37. sysRTM_DELETE = 0x2
  38. sysRTM_CHANGE = 0x3
  39. sysRTM_GET = 0x4
  40. sysRTM_LOSING = 0x5
  41. sysRTM_REDIRECT = 0x6
  42. sysRTM_MISS = 0x7
  43. sysRTM_LOCK = 0x8
  44. sysRTM_OLDADD = 0x9
  45. sysRTM_OLDDEL = 0xa
  46. sysRTM_RESOLVE = 0xb
  47. sysRTM_NEWADDR = 0xc
  48. sysRTM_DELADDR = 0xd
  49. sysRTM_IFANNOUNCE = 0x10
  50. sysRTM_IEEE80211 = 0x11
  51. sysRTM_SETGATE = 0x12
  52. sysRTM_LLINFO_UPD = 0x13
  53. sysRTM_IFINFO = 0x14
  54. sysRTM_CHGADDR = 0x15
  55. sysRTA_DST = 0x1
  56. sysRTA_GATEWAY = 0x2
  57. sysRTA_NETMASK = 0x4
  58. sysRTA_GENMASK = 0x8
  59. sysRTA_IFP = 0x10
  60. sysRTA_IFA = 0x20
  61. sysRTA_AUTHOR = 0x40
  62. sysRTA_BRD = 0x80
  63. sysRTA_TAG = 0x100
  64. sysRTAX_DST = 0x0
  65. sysRTAX_GATEWAY = 0x1
  66. sysRTAX_NETMASK = 0x2
  67. sysRTAX_GENMASK = 0x3
  68. sysRTAX_IFP = 0x4
  69. sysRTAX_IFA = 0x5
  70. sysRTAX_AUTHOR = 0x6
  71. sysRTAX_BRD = 0x7
  72. sysRTAX_TAG = 0x8
  73. sysRTAX_MAX = 0x9
  74. )
  75. const (
  76. sizeofIfMsghdrNetBSD7 = 0x98
  77. sizeofIfaMsghdrNetBSD7 = 0x18
  78. sizeofIfAnnouncemsghdrNetBSD7 = 0x18
  79. sizeofRtMsghdrNetBSD7 = 0x78
  80. sizeofRtMetricsNetBSD7 = 0x50
  81. sizeofSockaddrStorage = 0x80
  82. sizeofSockaddrInet = 0x10
  83. sizeofSockaddrInet6 = 0x1c
  84. )