2014-09-01 03:27:34 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package netlink
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
2016-12-17 22:34:13 +00:00
|
|
|
"net"
|
2014-09-01 03:27:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
|
|
)
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetUp(link Link) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetDown(link Link) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetMTU(link Link, mtu int) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetMaster(link Link, master *Link) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetNsPid(link Link, nspid int) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetNsFd(link Link, fd int) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetName(link Link, name string) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:34:13 +00:00
|
|
|
func LinkSetAlias(link Link, name string) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetVfVlan(link Link, vf, vlan int) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetVfTxRate(link Link, vf, rate int) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetNoMaster(link Link) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetMasterByIndex(link Link, masterIndex int) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetXdpFd(link Link, fd int) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkByName(name string) (Link, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkByAlias(alias string) (Link, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkByIndex(index int) (Link, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetHairpin(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetGuard(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetFastLeave(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetLearning(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetRootBlock(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkSetFlood(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkAdd(link Link) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func LinkDel(link Link) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-02-17 22:16:48 +00:00
|
|
|
func SetHairpin(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func SetGuard(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func SetFastLeave(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func SetLearning(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func SetRootBlock(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func SetFlood(link Link, mode bool) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2014-09-01 03:27:34 +00:00
|
|
|
func LinkList() ([]Link, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-19 23:38:47 +00:00
|
|
|
func AddrAdd(link Link, addr *Addr) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-19 23:38:47 +00:00
|
|
|
func AddrDel(link Link, addr *Addr) error {
|
2014-09-01 03:27:34 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-11-19 21:40:56 +00:00
|
|
|
func AddrList(link Link, family int) ([]Addr, error) {
|
2014-09-01 03:27:34 +00:00
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func RouteAdd(route *Route) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func RouteDel(route *Route) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func RouteList(link *Link, family int) ([]Route, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmPolicyAdd(policy *XfrmPolicy) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmPolicyDel(policy *XfrmPolicy) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmPolicyList(family int) ([]XfrmPolicy, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmStateAdd(policy *XfrmState) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmStateDel(policy *XfrmState) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func XfrmStateList(family int) ([]XfrmState, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
2014-09-16 00:44:20 +00:00
|
|
|
|
|
|
|
func NeighAdd(neigh *Neigh) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func NeighSet(neigh *Neigh) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func NeighAppend(neigh *Neigh) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func NeighDel(neigh *Neigh) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func NeighList(linkIndex, family int) ([]Neigh, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-06-15 15:44:14 +00:00
|
|
|
func NeighDeserialize(m []byte) (*Neigh, error) {
|
|
|
|
return nil, ErrNotImplemented
|
2014-09-16 00:44:20 +00:00
|
|
|
}
|