| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
|
| |
- If the path cost is calculated when the link is down, set a pending flag so
it is calculated again when it comes back up.
- To not use 00:00:00:00:00:00 as the bridge id, all interfaces are scanned and
the lowest number wins. All zeros is too low.
Approved by: re (rwatson)
|
|
|
|
| |
extended in the future.
|
|
|
|
|
|
|
| |
protocols) while PointToPoint has been PtP links. Change the variables
accordingly while the code is still fresh and undocumented.
Requested by: bz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the bridge port and path cost have been administratively set or
calculated automatically by RSTP.
Make sure to transition from non-edge to edge when the port goes down
and the edge flag was manually set before.
This is needed to comply with the condition
((!portEnabled && AdminEdge) || ....)
in the Bridge Detection State Machine (IEE802.1D-2004, p. 171).
Reviewed by: thompsa
Approved by: bz (mentor)
|
| |
|
|
|
|
| |
__attribute__(__packed__).
|
|
|
|
|
|
|
|
|
| |
- use flags rather than sperate ioctls for edge, p2p
- implement p2p and autop2p flags
- define large pathcost constant as ULL
- show bridgeid and rootid in ifconfig
Obtained from: Reyk Floeter <reyk@openbsd.org>
|
|
|
|
| |
set before the port is marked STP and they will no longer be overwrittten
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Each stp port is added sequentially so it was possible for our bridgeid to
change every time because the new port has a lower MAC address. Instead
just find the lowest MAC address from all Ethernet adapters in the machine
as the value only needs to be unique, this stops a lot of churn on the
protocol.
- Update the states after enabling or disabling a port.
- Keep tabs if we have been stopped or started by our parent bridge.
- The callout only needs to be drained before destroying the mutex, move it to
bstp_detach.
|
|
|
|
|
|
|
|
|
|
| |
RSTP provides faster spanning tree convergence, the protocol will exchange
information with neighboring switches to quickly transition to forwarding
without creating loops. The code will default to RSTP mode but will downgrade
any port connected to a legacy STP network so is fully backward compatible.
Reviewed by: syrinx
Tested by: syrinx
|
|
|
|
|
| |
occured, we need to do this from a taskqueue to avoid a LOR with the if_bridge
mutex.
|
|
|
|
|
|
| |
work on a bridge monitoring module for BSNMP.
Submitted by: shteryana (SoC 2006)
|
|
|