openwrt/package/base-files
Paul Spooren 5e8616ee62
base-files: enable RSTP on the default LAN bridge
A cable plugged into two LAN ports of the same device, or two LAN ports
connected through a dumb switch, creates a broadcast storm today because
br-lan runs without spanning tree.

When ustpd is installed, config_generate now sets on the generated LAN
bridge (br-lan, or the "switch" bridge used by realtek):

  option stp '1'
  option priority '61440'

ustpd runs RSTP; with the default AutoEdge ports without a bridge behind
them turn edge (forwarding) about 3 s after link-up. Priority 61440 is
the highest value, so an OpenWrt device never takes over as root bridge
from existing switches. Wi-Fi AP interfaces already get bpdu_filter from
netifd, so they never send or process BPDUs.

Without ustpd nothing changes: enabling STP without it would fall back
to kernel 802.1D with ~16 s listening/learning per link-up.

ustp is added to the router default packages.

Link: https://github.com/openwrt/openwrt/pull/26923
Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-11-30 17:47:47 +01:00
..
files base-files: enable RSTP on the default LAN bridge 2026-11-30 17:47:47 +01:00
Makefile
…
image-config.in
…