github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/net/route/zsys_dragonfly.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_dragonfly.go 3 4 package route 5 6 const ( 7 sysAF_UNSPEC = 0x0 8 sysAF_INET = 0x2 9 sysAF_ROUTE = 0x11 10 sysAF_LINK = 0x12 11 sysAF_INET6 = 0x1c 12 13 sysSOCK_RAW = 0x3 14 15 sysNET_RT_DUMP = 0x1 16 sysNET_RT_FLAGS = 0x2 17 sysNET_RT_IFLIST = 0x3 18 sysNET_RT_MAXID = 0x4 19 ) 20 21 const ( 22 sysCTL_MAXNAME = 0xc 23 24 sysCTL_UNSPEC = 0x0 25 sysCTL_KERN = 0x1 26 sysCTL_VM = 0x2 27 sysCTL_VFS = 0x3 28 sysCTL_NET = 0x4 29 sysCTL_DEBUG = 0x5 30 sysCTL_HW = 0x6 31 sysCTL_MACHDEP = 0x7 32 sysCTL_USER = 0x8 33 sysCTL_P1003_1B = 0x9 34 sysCTL_LWKT = 0xa 35 sysCTL_MAXID = 0xb 36 ) 37 38 const ( 39 sysRTM_VERSION = 0x6 40 41 sysRTM_ADD = 0x1 42 sysRTM_DELETE = 0x2 43 sysRTM_CHANGE = 0x3 44 sysRTM_GET = 0x4 45 sysRTM_LOSING = 0x5 46 sysRTM_REDIRECT = 0x6 47 sysRTM_MISS = 0x7 48 sysRTM_LOCK = 0x8 49 sysRTM_RESOLVE = 0xb 50 sysRTM_NEWADDR = 0xc 51 sysRTM_DELADDR = 0xd 52 sysRTM_IFINFO = 0xe 53 sysRTM_NEWMADDR = 0xf 54 sysRTM_DELMADDR = 0x10 55 sysRTM_IFANNOUNCE = 0x11 56 sysRTM_IEEE80211 = 0x12 57 58 sysRTA_DST = 0x1 59 sysRTA_GATEWAY = 0x2 60 sysRTA_NETMASK = 0x4 61 sysRTA_GENMASK = 0x8 62 sysRTA_IFP = 0x10 63 sysRTA_IFA = 0x20 64 sysRTA_AUTHOR = 0x40 65 sysRTA_BRD = 0x80 66 sysRTA_MPLS1 = 0x100 67 sysRTA_MPLS2 = 0x200 68 sysRTA_MPLS3 = 0x400 69 70 sysRTAX_DST = 0x0 71 sysRTAX_GATEWAY = 0x1 72 sysRTAX_NETMASK = 0x2 73 sysRTAX_GENMASK = 0x3 74 sysRTAX_IFP = 0x4 75 sysRTAX_IFA = 0x5 76 sysRTAX_AUTHOR = 0x6 77 sysRTAX_BRD = 0x7 78 sysRTAX_MPLS1 = 0x8 79 sysRTAX_MPLS2 = 0x9 80 sysRTAX_MPLS3 = 0xa 81 sysRTAX_MAX = 0xb 82 ) 83 84 const ( 85 sizeofIfMsghdrDragonFlyBSD4 = 0xb0 86 sizeofIfaMsghdrDragonFlyBSD4 = 0x14 87 sizeofIfmaMsghdrDragonFlyBSD4 = 0x10 88 sizeofIfAnnouncemsghdrDragonFlyBSD4 = 0x18 89 90 sizeofIfaMsghdrDragonFlyBSD58 = 0x18 91 92 sizeofRtMsghdrDragonFlyBSD4 = 0x98 93 sizeofRtMetricsDragonFlyBSD4 = 0x70 94 95 sizeofSockaddrStorage = 0x80 96 sizeofSockaddrInet = 0x10 97 sizeofSockaddrInet6 = 0x1c 98 )