History

bridge: implement BPDU blocking

This is Linux bridge implementation of STP protection (Cisco BPDU guard/Juniper BPDU block). BPDU block disables the bridge port if a STP BPDU packet is received. Why would you want to do this? If running Spanning Tree on bridge, hostile devices on the network may send BPDU and cause network failure. Enabling bpdu block will detect and stop this. How to recover the port? The port will be restarted if link is brought down, or removed and reattached. For example: # ip li set dev eth0 down; ip li set dev eth0 up

stephen hemminger committed 14 years ago

Commit a2e01a61 parent cd753735 files · +16 −1Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -216,6 +216,7 @@ enum { · 215 unmodified lines
216216 IFLA_BRPORT_PRIORITY, /* " priority */
217217 IFLA_BRPORT_COST, /* " cost */
218218 IFLA_BRPORT_MODE, /* mode (hairpin) */
219+ IFLA_BRPORT_GUARD, /* bpdu guard */
219220 __IFLA_BRPORT_MAX
220221 };
221222 #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)