The reconcile package is used for DOM reconcilation in Isomorphic Go web applications.

defs_dragonfly.go 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build ignore
  5. package route
  6. /*
  7. #include <sys/socket.h>
  8. #include <sys/sysctl.h>
  9. #include <net/if.h>
  10. #include <net/if_dl.h>
  11. #include <net/route.h>
  12. #include <netinet/in.h>
  13. */
  14. import "C"
  15. const (
  16. sysAF_UNSPEC = C.AF_UNSPEC
  17. sysAF_INET = C.AF_INET
  18. sysAF_ROUTE = C.AF_ROUTE
  19. sysAF_LINK = C.AF_LINK
  20. sysAF_INET6 = C.AF_INET6
  21. sysSOCK_RAW = C.SOCK_RAW
  22. sysNET_RT_DUMP = C.NET_RT_DUMP
  23. sysNET_RT_FLAGS = C.NET_RT_FLAGS
  24. sysNET_RT_IFLIST = C.NET_RT_IFLIST
  25. sysNET_RT_MAXID = C.NET_RT_MAXID
  26. )
  27. const (
  28. sysCTL_MAXNAME = C.CTL_MAXNAME
  29. sysCTL_UNSPEC = C.CTL_UNSPEC
  30. sysCTL_KERN = C.CTL_KERN
  31. sysCTL_VM = C.CTL_VM
  32. sysCTL_VFS = C.CTL_VFS
  33. sysCTL_NET = C.CTL_NET
  34. sysCTL_DEBUG = C.CTL_DEBUG
  35. sysCTL_HW = C.CTL_HW
  36. sysCTL_MACHDEP = C.CTL_MACHDEP
  37. sysCTL_USER = C.CTL_USER
  38. sysCTL_P1003_1B = C.CTL_P1003_1B
  39. sysCTL_LWKT = C.CTL_LWKT
  40. sysCTL_MAXID = C.CTL_MAXID
  41. )
  42. const (
  43. sysRTM_VERSION = C.RTM_VERSION
  44. sysRTM_ADD = C.RTM_ADD
  45. sysRTM_DELETE = C.RTM_DELETE
  46. sysRTM_CHANGE = C.RTM_CHANGE
  47. sysRTM_GET = C.RTM_GET
  48. sysRTM_LOSING = C.RTM_LOSING
  49. sysRTM_REDIRECT = C.RTM_REDIRECT
  50. sysRTM_MISS = C.RTM_MISS
  51. sysRTM_LOCK = C.RTM_LOCK
  52. sysRTM_OLDADD = C.RTM_OLDADD
  53. sysRTM_OLDDEL = C.RTM_OLDDEL
  54. sysRTM_RESOLVE = C.RTM_RESOLVE
  55. sysRTM_NEWADDR = C.RTM_NEWADDR
  56. sysRTM_DELADDR = C.RTM_DELADDR
  57. sysRTM_IFINFO = C.RTM_IFINFO
  58. sysRTM_NEWMADDR = C.RTM_NEWMADDR
  59. sysRTM_DELMADDR = C.RTM_DELMADDR
  60. sysRTM_IFANNOUNCE = C.RTM_IFANNOUNCE
  61. sysRTM_IEEE80211 = C.RTM_IEEE80211
  62. sysRTA_DST = C.RTA_DST
  63. sysRTA_GATEWAY = C.RTA_GATEWAY
  64. sysRTA_NETMASK = C.RTA_NETMASK
  65. sysRTA_GENMASK = C.RTA_GENMASK
  66. sysRTA_IFP = C.RTA_IFP
  67. sysRTA_IFA = C.RTA_IFA
  68. sysRTA_AUTHOR = C.RTA_AUTHOR
  69. sysRTA_BRD = C.RTA_BRD
  70. sysRTA_MPLS1 = C.RTA_MPLS1
  71. sysRTA_MPLS2 = C.RTA_MPLS2
  72. sysRTA_MPLS3 = C.RTA_MPLS3
  73. sysRTAX_DST = C.RTAX_DST
  74. sysRTAX_GATEWAY = C.RTAX_GATEWAY
  75. sysRTAX_NETMASK = C.RTAX_NETMASK
  76. sysRTAX_GENMASK = C.RTAX_GENMASK
  77. sysRTAX_IFP = C.RTAX_IFP
  78. sysRTAX_IFA = C.RTAX_IFA
  79. sysRTAX_AUTHOR = C.RTAX_AUTHOR
  80. sysRTAX_BRD = C.RTAX_BRD
  81. sysRTAX_MPLS1 = C.RTAX_MPLS1
  82. sysRTAX_MPLS2 = C.RTAX_MPLS2
  83. sysRTAX_MPLS3 = C.RTAX_MPLS3
  84. sysRTAX_MAX = C.RTAX_MAX
  85. )
  86. const (
  87. sizeofIfMsghdrDragonFlyBSD4 = C.sizeof_struct_if_msghdr
  88. sizeofIfaMsghdrDragonFlyBSD4 = C.sizeof_struct_ifa_msghdr
  89. sizeofIfmaMsghdrDragonFlyBSD4 = C.sizeof_struct_ifma_msghdr
  90. sizeofIfAnnouncemsghdrDragonFlyBSD4 = C.sizeof_struct_if_announcemsghdr
  91. sizeofRtMsghdrDragonFlyBSD4 = C.sizeof_struct_rt_msghdr
  92. sizeofRtMetricsDragonFlyBSD4 = C.sizeof_struct_rt_metrics
  93. sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage
  94. sizeofSockaddrInet = C.sizeof_struct_sockaddr_in
  95. sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
  96. )