iproute2/bridge
Stephen Hemminger f4b86f752d bridge: catch invalid stp state
The stp state parsing was putting result in an __u8 which
would mean that check for invalid string was never happening.

Caught by enabling -Wextra:
    CC       mst.o
mst.c: In function ‘mst_set’:
mst.c:217:27: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  217 |                 if (state == -1) {

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2024-10-07 09:33:48 -07:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: mst: Add get/set support for MST states 2024-07-08 03:33:53 +00:00
bridge.c bridge: mst: Add get/set support for MST states 2024-07-08 03:33:53 +00:00
fdb.c bridge: fdb: support match on [no]router flag in flush command 2023-10-20 09:43:05 -06:00
link.c bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
Makefile bridge: mst: Add get/set support for MST states 2024-07-08 03:33:53 +00:00
mdb.c bridge: mdb: Add flush support 2023-12-30 14:26:19 -07:00
monitor.c bridge: use SPDX 2023-01-14 09:00:34 -08:00
mst.c bridge: catch invalid stp state 2024-10-07 09:33:48 -07:00
vlan.c bridge: Remove duplicated textification macros 2024-08-04 15:24:21 +00:00
vni.c bridge: Remove duplicated textification macros 2024-08-04 15:24:21 +00:00