github.com/sagernet/netlink@v0.0.0-20240612041022-b9a21c07ac6a/netlink_unspecified.go (about) 1 //go:build !linux 2 // +build !linux 3 4 package netlink 5 6 import "net" 7 8 func LinkSetUp(link Link) error { 9 return ErrNotImplemented 10 } 11 12 func LinkSetDown(link Link) error { 13 return ErrNotImplemented 14 } 15 16 func LinkSetMTU(link Link, mtu int) error { 17 return ErrNotImplemented 18 } 19 20 func LinkSetMaster(link Link, master Link) error { 21 return ErrNotImplemented 22 } 23 24 func LinkSetNsPid(link Link, nspid int) error { 25 return ErrNotImplemented 26 } 27 28 func LinkSetNsFd(link Link, fd int) error { 29 return ErrNotImplemented 30 } 31 32 func LinkSetName(link Link, name string) error { 33 return ErrNotImplemented 34 } 35 36 func LinkSetAlias(link Link, name string) error { 37 return ErrNotImplemented 38 } 39 40 func LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error { 41 return ErrNotImplemented 42 } 43 44 func LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error { 45 return ErrNotImplemented 46 } 47 48 func LinkSetVfVlan(link Link, vf, vlan int) error { 49 return ErrNotImplemented 50 } 51 52 func LinkSetVfVlanQos(link Link, vf, vlan, qos int) error { 53 return ErrNotImplemented 54 } 55 56 func LinkSetVfTxRate(link Link, vf, rate int) error { 57 return ErrNotImplemented 58 } 59 60 func LinkSetVfRate(link Link, vf, minRate, maxRate int) error { 61 return ErrNotImplemented 62 } 63 64 func LinkSetNoMaster(link Link) error { 65 return ErrNotImplemented 66 } 67 68 func LinkSetMasterByIndex(link Link, masterIndex int) error { 69 return ErrNotImplemented 70 } 71 72 func LinkSetXdpFd(link Link, fd int) error { 73 return ErrNotImplemented 74 } 75 76 func LinkSetXdpFdWithFlags(link Link, fd, flags int) error { 77 return ErrNotImplemented 78 } 79 80 func LinkSetARPOff(link Link) error { 81 return ErrNotImplemented 82 } 83 84 func LinkSetARPOn(link Link) error { 85 return ErrNotImplemented 86 } 87 88 func LinkByName(name string) (Link, error) { 89 return nil, ErrNotImplemented 90 } 91 92 func LinkByAlias(alias string) (Link, error) { 93 return nil, ErrNotImplemented 94 } 95 96 func LinkByIndex(index int) (Link, error) { 97 return nil, ErrNotImplemented 98 } 99 100 func LinkSetHairpin(link Link, mode bool) error { 101 return ErrNotImplemented 102 } 103 104 func LinkSetGuard(link Link, mode bool) error { 105 return ErrNotImplemented 106 } 107 108 func LinkSetFastLeave(link Link, mode bool) error { 109 return ErrNotImplemented 110 } 111 112 func LinkSetLearning(link Link, mode bool) error { 113 return ErrNotImplemented 114 } 115 116 func LinkSetRootBlock(link Link, mode bool) error { 117 return ErrNotImplemented 118 } 119 120 func LinkSetFlood(link Link, mode bool) error { 121 return ErrNotImplemented 122 } 123 124 func LinkSetTxQLen(link Link, qlen int) error { 125 return ErrNotImplemented 126 } 127 128 func LinkSetGSOMaxSize(link Link, maxSize int) error { 129 return ErrNotImplemented 130 } 131 132 func LinkSetGROMaxSize(link Link, maxSize int) error { 133 return ErrNotImplemented 134 } 135 136 func LinkAdd(link Link) error { 137 return ErrNotImplemented 138 } 139 140 func LinkDel(link Link) error { 141 return ErrNotImplemented 142 } 143 144 func SetHairpin(link Link, mode bool) error { 145 return ErrNotImplemented 146 } 147 148 func SetGuard(link Link, mode bool) error { 149 return ErrNotImplemented 150 } 151 152 func SetFastLeave(link Link, mode bool) error { 153 return ErrNotImplemented 154 } 155 156 func SetLearning(link Link, mode bool) error { 157 return ErrNotImplemented 158 } 159 160 func SetRootBlock(link Link, mode bool) error { 161 return ErrNotImplemented 162 } 163 164 func SetFlood(link Link, mode bool) error { 165 return ErrNotImplemented 166 } 167 168 func LinkList() ([]Link, error) { 169 return nil, ErrNotImplemented 170 } 171 172 func AddrAdd(link Link, addr *Addr) error { 173 return ErrNotImplemented 174 } 175 176 func AddrReplace(link Link, addr *Addr) error { 177 return ErrNotImplemented 178 } 179 180 func AddrDel(link Link, addr *Addr) error { 181 return ErrNotImplemented 182 } 183 184 func AddrList(link Link, family int) ([]Addr, error) { 185 return nil, ErrNotImplemented 186 } 187 188 func RouteAdd(route *Route) error { 189 return ErrNotImplemented 190 } 191 192 func RouteAppend(route *Route) error { 193 return ErrNotImplemented 194 } 195 196 func RouteDel(route *Route) error { 197 return ErrNotImplemented 198 } 199 200 func RouteGet(destination net.IP) ([]Route, error) { 201 return nil, ErrNotImplemented 202 } 203 204 func RouteList(link Link, family int) ([]Route, error) { 205 return nil, ErrNotImplemented 206 } 207 208 func RouteListFiltered(family int, filter *Route, filterMask uint64) ([]Route, error) { 209 return nil, ErrNotImplemented 210 } 211 212 func RouteReplace(route *Route) error { 213 return ErrNotImplemented 214 } 215 216 func XfrmPolicyAdd(policy *XfrmPolicy) error { 217 return ErrNotImplemented 218 } 219 220 func XfrmPolicyDel(policy *XfrmPolicy) error { 221 return ErrNotImplemented 222 } 223 224 func XfrmPolicyList(family int) ([]XfrmPolicy, error) { 225 return nil, ErrNotImplemented 226 } 227 228 func XfrmStateAdd(policy *XfrmState) error { 229 return ErrNotImplemented 230 } 231 232 func XfrmStateDel(policy *XfrmState) error { 233 return ErrNotImplemented 234 } 235 236 func XfrmStateList(family int) ([]XfrmState, error) { 237 return nil, ErrNotImplemented 238 } 239 240 func NeighAdd(neigh *Neigh) error { 241 return ErrNotImplemented 242 } 243 244 func NeighSet(neigh *Neigh) error { 245 return ErrNotImplemented 246 } 247 248 func NeighAppend(neigh *Neigh) error { 249 return ErrNotImplemented 250 } 251 252 func NeighDel(neigh *Neigh) error { 253 return ErrNotImplemented 254 } 255 256 func NeighList(linkIndex, family int) ([]Neigh, error) { 257 return nil, ErrNotImplemented 258 } 259 260 func NeighDeserialize(m []byte) (*Neigh, error) { 261 return nil, ErrNotImplemented 262 } 263 264 func SocketGet(local, remote net.Addr) (*Socket, error) { 265 return nil, ErrNotImplemented 266 }