diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-07-13 07:53:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-07-13 07:53:44 +0200 |
commit | 1f283c654aeb1f8983e0a81b7a81cc4784fffe3f (patch) | |
tree | bba9fd7421ccefbff17841647c2c2c47a5f411ed /bridge.c | |
parent | 4e92ea74273f7d569f2be67066f9ebd33cf2ecad (diff) | |
download | netifd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |