github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/route/zsys_freebsd_386.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs defs_freebsd.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_IFMALIST = 0x4 19 sysNET_RT_IFLISTL = 0x5 20 ) 21 22 const ( 23 sysCTL_MAXNAME = 0x18 24 25 sysCTL_UNSPEC = 0x0 26 sysCTL_KERN = 0x1 27 sysCTL_VM = 0x2 28 sysCTL_VFS = 0x3 29 sysCTL_NET = 0x4 30 sysCTL_DEBUG = 0x5 31 sysCTL_HW = 0x6 32 sysCTL_MACHDEP = 0x7 33 sysCTL_USER = 0x8 34 sysCTL_P1003_1B = 0x9 35 ) 36 37 const ( 38 sysRTM_VERSION = 0x5 39 40 sysRTM_ADD = 0x1 41 sysRTM_DELETE = 0x2 42 sysRTM_CHANGE = 0x3 43 sysRTM_GET = 0x4 44 sysRTM_LOSING = 0x5 45 sysRTM_REDIRECT = 0x6 46 sysRTM_MISS = 0x7 47 sysRTM_LOCK = 0x8 48 sysRTM_RESOLVE = 0xb 49 sysRTM_NEWADDR = 0xc 50 sysRTM_DELADDR = 0xd 51 sysRTM_IFINFO = 0xe 52 sysRTM_NEWMADDR = 0xf 53 sysRTM_DELMADDR = 0x10 54 sysRTM_IFANNOUNCE = 0x11 55 sysRTM_IEEE80211 = 0x12 56 57 sysRTA_DST = 0x1 58 sysRTA_GATEWAY = 0x2 59 sysRTA_NETMASK = 0x4 60 sysRTA_GENMASK = 0x8 61 sysRTA_IFP = 0x10 62 sysRTA_IFA = 0x20 63 sysRTA_AUTHOR = 0x40 64 sysRTA_BRD = 0x80 65 66 sysRTAX_DST = 0x0 67 sysRTAX_GATEWAY = 0x1 68 sysRTAX_NETMASK = 0x2 69 sysRTAX_GENMASK = 0x3 70 sysRTAX_IFP = 0x4 71 sysRTAX_IFA = 0x5 72 sysRTAX_AUTHOR = 0x6 73 sysRTAX_BRD = 0x7 74 sysRTAX_MAX = 0x8 75 ) 76 77 const ( 78 sizeofIfMsghdrlFreeBSD10 = 0x68 79 sizeofIfaMsghdrFreeBSD10 = 0x14 80 sizeofIfaMsghdrlFreeBSD10 = 0x6c 81 sizeofIfmaMsghdrFreeBSD10 = 0x10 82 sizeofIfAnnouncemsghdrFreeBSD10 = 0x18 83 84 sizeofRtMsghdrFreeBSD10 = 0x5c 85 sizeofRtMetricsFreeBSD10 = 0x38 86 87 sizeofIfMsghdrFreeBSD7 = 0x60 88 sizeofIfMsghdrFreeBSD8 = 0x60 89 sizeofIfMsghdrFreeBSD9 = 0x60 90 sizeofIfMsghdrFreeBSD10 = 0x64 91 sizeofIfMsghdrFreeBSD11 = 0xa8 92 93 sizeofIfDataFreeBSD7 = 0x50 94 sizeofIfDataFreeBSD8 = 0x50 95 sizeofIfDataFreeBSD9 = 0x50 96 sizeofIfDataFreeBSD10 = 0x54 97 sizeofIfDataFreeBSD11 = 0x98 98 99 // MODIFIED BY HAND FOR 386 EMULATION ON AMD64 100 // 386 EMULATION USES THE UNDERLYING RAW DATA LAYOUT 101 102 sizeofIfMsghdrlFreeBSD10Emu = 0xb0 103 sizeofIfaMsghdrFreeBSD10Emu = 0x14 104 sizeofIfaMsghdrlFreeBSD10Emu = 0xb0 105 sizeofIfmaMsghdrFreeBSD10Emu = 0x10 106 sizeofIfAnnouncemsghdrFreeBSD10Emu = 0x18 107 108 sizeofRtMsghdrFreeBSD10Emu = 0x98 109 sizeofRtMetricsFreeBSD10Emu = 0x70 110 111 sizeofIfMsghdrFreeBSD7Emu = 0xa8 112 sizeofIfMsghdrFreeBSD8Emu = 0xa8 113 sizeofIfMsghdrFreeBSD9Emu = 0xa8 114 sizeofIfMsghdrFreeBSD10Emu = 0xa8 115 sizeofIfMsghdrFreeBSD11Emu = 0xa8 116 117 sizeofIfDataFreeBSD7Emu = 0x98 118 sizeofIfDataFreeBSD8Emu = 0x98 119 sizeofIfDataFreeBSD9Emu = 0x98 120 sizeofIfDataFreeBSD10Emu = 0x98 121 sizeofIfDataFreeBSD11Emu = 0x98 122 123 sizeofSockaddrStorage = 0x80 124 sizeofSockaddrInet = 0x10 125 sizeofSockaddrInet6 = 0x1c 126 )