summaryrefslogtreecommitdiff
path: root/bridge.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-07-13 07:53:40 +0200
committerFelix Fietkau <nbd@nbd.name>2021-07-13 07:53:44 +0200
commit1f283c654aeb1f8983e0a81b7a81cc4784fffe3f (patch)
treebba9fd7421ccefbff17841647c2c2c47a5f411ed /bridge.c
parent4e92ea74273f7d569f2be67066f9ebd33cf2ecad (diff)
downloadnetifd-1f283c654aeb1f8983e0a81b7a81cc4784fffe3f.tar.gz
bridge: fix hotplug vlan overwrite on big-endian systems
The avl key type for bridge vlans is uint16_t, so any lookup with a wider type is going to fail on big-endian systems This resulted in hotplug-added devices replacing configured member ports Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'bridge.c')
-rw-r--r--bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge.c b/bridge.c
index 4f3fe35..6c8e79a 100644
--- a/bridge.c
+++ b/bridge.c
@@ -690,7 +690,7 @@ bridge_add_member(struct bridge_state *bst, const char *name)
}
static struct bridge_vlan *
-bridge_hotplug_get_vlan(struct bridge_state *bst, unsigned int vid)
+bridge_hotplug_get_vlan(struct bridge_state *bst, uint16_t vid)
{
struct bridge_vlan *vlan;