Versions in this module Expand all Collapse all v0 v0.16.0 Feb 27, 2026 v0.15.0 Aug 18, 2025 Changes in this version + const BRCTL_ADD_BRIDGE + const BRCTL_ADD_I + const BRCTL_AGEING_TIME + const BRCTL_BRFORWARD + const BRCTL_BRIDGE_DIR + const BRCTL_BRIDGE_ID + const BRCTL_BRIDGE_INTERFACE_DIR + const BRCTL_BRIDGE_PRIO + const BRCTL_DEL_BRIDGE + const BRCTL_DEL_I + const BRCTL_DESIGNATED_BRIDGE + const BRCTL_DESIGNATED_COST + const BRCTL_DESIGNATED_PORT + const BRCTL_DESIGNATED_ROOT + const BRCTL_FORWARD_DELAY + const BRCTL_FORWARD_DELAY_TIMER + const BRCTL_GC_TIMER + const BRCTL_HAIRPIN + const BRCTL_HELLO_TIME + const BRCTL_HELLO_TIMER + const BRCTL_HOLD_TIMER + const BRCTL_MAX_AGE + const BRCTL_MSG_AGE_TIMER + const BRCTL_PATH_COST + const BRCTL_PORT_FLAGS + const BRCTL_PORT_ID + const BRCTL_PORT_NO + const BRCTL_PORT_ROLE + const BRCTL_PORT_STATE + const BRCTL_PRIORITY + const BRCTL_ROOT_ID + const BRCTL_ROOT_PATH_COST + const BRCTL_ROOT_PORT + const BRCTL_SET_AEGING_TIME + const BRCTL_SET_BRIDGE_PRIORITY + const BRCTL_SET_PATH_COST + const BRCTL_SET_PORT_PRIORITY + const BRCTL_STP_STATE + const BRCTL_SYS_NET + const BRCTL_SYS_SUFFIX + const BRCTL_TCN_TIMER + const BRCTL_TOPOLOGY_CHANGE + const BRCTL_TOPOLOGY_CHANGE_DETECTED + const BRCTL_TOPOLOGY_CHANGE_TIMER + const BRCTL_TRILL_ENABLED + const ShowBridgeFmt + var ErrBridgeNotExist = errors.New("bridge does not exist") + var ErrPortNotExist = errors.New("port does not exist") + func Addbr(name string) error + func Addif(bridge string, iface string) error + func Delbr(name string) error + func Delif(bridge string, iface string) error + func Hairpin(bridge string, port string, hairpinmode string) error + func SetAgeingTime(name string, time string) error + func SetBridgePrio(bridge string, bridgePriority string) error + func SetForwardDelay(bridge string, time string) error + func SetHello(bridge string, time string) error + func SetMaxAge(bridge string, time string) error + func SetPathCost(bridge string, port string, cost string) error + func SetPortPrio(bridge string, port string, prio string) error + func SetSTP(bridge string, state string) error + func Show(out io.Writer, names ...string) error + func ShowMACs(bridge string, out io.Writer) error + func ShowStp(out io.Writer, bridge string) error + type Info struct + AgingTime unix.Timeval + BridgeForwardDelay unix.Timeval + BridgeHelloTime unix.Timeval + BridgeID string + BridgeMaxAge unix.Timeval + ForwardDelay unix.Timeval + GCTimer unix.Timeval + HelloTime unix.Timeval + HelloTimer unix.Timeval + Interfaces []PortInfo + MaxAge unix.Timeval + Name string + RootID string + RootPathCost int + RootPort uint16 + StpEnabled bool + TCNTimer unix.Timeval + TopologyChange bool + TopologyChangeDetected bool + TopologyChangeTimer unix.Timeval + func NewInfo(name string) (Info, error) + type PortInfo struct + DesignatedBridge string + DesignatedCost int + DesignatedPort string + DesignatedRoot string + ForwardDelayTimer unix.Timeval + HairpinMode bool + HoldTimer unix.Timeval + MessageAgeTimer unix.Timeval + Name string + PathCost int + PortID string + PortNumber int + State int + func NewPortInfo(bridge, port string) (PortInfo, error)