123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- // +build !linux
- package netlink
- import (
- "net"
- "time"
- "github.com/vishvananda/netns"
- )
- type Handle struct{}
- func NewHandle(nlFamilies ...int) (*Handle, error) {
- return nil, ErrNotImplemented
- }
- func NewHandleAt(ns netns.NsHandle, nlFamilies ...int) (*Handle, error) {
- return nil, ErrNotImplemented
- }
- func NewHandleAtFrom(newNs, curNs netns.NsHandle) (*Handle, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) Delete() {}
- func (h *Handle) SupportsNetlinkFamily(nlFamily int) bool {
- return false
- }
- func (h *Handle) SetSocketTimeout(to time.Duration) error {
- return ErrNotImplemented
- }
- func (h *Handle) SetPromiscOn(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) SetPromiscOff(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetUp(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetDown(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetMTU(link Link, mtu int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetName(link Link, name string) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetAlias(link Link, name string) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetHardwareAddr(link Link, hwaddr net.HardwareAddr) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetVfHardwareAddr(link Link, vf int, hwaddr net.HardwareAddr) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetVfVlan(link Link, vf, vlan int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetVfTxRate(link Link, vf, rate int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetMaster(link Link, master *Bridge) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetNoMaster(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetMasterByIndex(link Link, masterIndex int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetNsPid(link Link, nspid int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetNsFd(link Link, fd int) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkAdd(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkDel(link Link) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkByName(name string) (Link, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) LinkByAlias(alias string) (Link, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) LinkByIndex(index int) (Link, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) LinkList() ([]Link, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) LinkSetHairpin(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetGuard(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetFastLeave(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetLearning(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetRootBlock(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) LinkSetFlood(link Link, mode bool) error {
- return ErrNotImplemented
- }
- func (h *Handle) setProtinfoAttr(link Link, mode bool, attr int) error {
- return ErrNotImplemented
- }
- func (h *Handle) AddrAdd(link Link, addr *Addr) error {
- return ErrNotImplemented
- }
- func (h *Handle) AddrDel(link Link, addr *Addr) error {
- return ErrNotImplemented
- }
- func (h *Handle) AddrList(link Link, family int) ([]Addr, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) ClassDel(class Class) error {
- return ErrNotImplemented
- }
- func (h *Handle) ClassChange(class Class) error {
- return ErrNotImplemented
- }
- func (h *Handle) ClassReplace(class Class) error {
- return ErrNotImplemented
- }
- func (h *Handle) ClassAdd(class Class) error {
- return ErrNotImplemented
- }
- func (h *Handle) ClassList(link Link, parent uint32) ([]Class, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) FilterDel(filter Filter) error {
- return ErrNotImplemented
- }
- func (h *Handle) FilterAdd(filter Filter) error {
- return ErrNotImplemented
- }
- func (h *Handle) FilterList(link Link, parent uint32) ([]Filter, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) NeighAdd(neigh *Neigh) error {
- return ErrNotImplemented
- }
- func (h *Handle) NeighSet(neigh *Neigh) error {
- return ErrNotImplemented
- }
- func (h *Handle) NeighAppend(neigh *Neigh) error {
- return ErrNotImplemented
- }
- func (h *Handle) NeighDel(neigh *Neigh) error {
- return ErrNotImplemented
- }
- func (h *Handle) NeighList(linkIndex, family int) ([]Neigh, error) {
- return nil, ErrNotImplemented
- }
- func (h *Handle) NeighProxyList(linkIndex, family int) ([]Neigh, error) {
- return nil, ErrNotImplemented
- }
|