mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
82 lines
1.2 KiB
Go
82 lines
1.2 KiB
Go
//go:build !linux
|
|
|
|
package network
|
|
|
|
type OtherBridge struct {
|
|
name string
|
|
mtu int
|
|
}
|
|
|
|
func NewBridger(provider, name string, ifMtu int) Bridger {
|
|
return &OtherBridge{
|
|
name: name,
|
|
mtu: ifMtu,
|
|
}
|
|
}
|
|
|
|
func (b *OtherBridge) Type() string {
|
|
return "NAN"
|
|
}
|
|
|
|
func (b *OtherBridge) Name() string {
|
|
return b.name
|
|
}
|
|
func (b *OtherBridge) Open(addr string) {
|
|
}
|
|
|
|
func (b *OtherBridge) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) AddSlave(name string) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) DelSlave(name string) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) ListSlave() <-chan Taper {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) Mtu() int {
|
|
return b.mtu
|
|
}
|
|
|
|
func (b *OtherBridge) Stp(enable bool) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) Delay(value int) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) Kernel() string {
|
|
return "NAN"
|
|
}
|
|
|
|
func (b *OtherBridge) ListMac() <-chan *MacFdb {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) String() string {
|
|
return "NAN"
|
|
}
|
|
|
|
func (b *OtherBridge) Stats() DeviceStats {
|
|
return DeviceStats{}
|
|
}
|
|
|
|
func (b *OtherBridge) CallIptables(value int) error {
|
|
return nil
|
|
}
|
|
|
|
func (b *OtherBridge) L3Name() string {
|
|
return "NAN"
|
|
}
|
|
|
|
func (b *OtherBridge) SetMtu(mtu int) error {
|
|
return nil
|
|
}
|