1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

network: bridge: fix endian of vlan protocol

Fixes #22469.
This commit is contained in:
Yu Watanabe 2022-02-10 17:47:14 +09:00
parent 19ff06b3a4
commit 6eb35be8e0

View File

@ -121,7 +121,7 @@ static int netdev_bridge_post_create_message(NetDev *netdev, sd_netlink_message
} }
if (b->vlan_protocol >= 0) { if (b->vlan_protocol >= 0) {
r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_PROTOCOL, b->vlan_protocol); r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_PROTOCOL, htobe16(b->vlan_protocol));
if (r < 0) if (r < 0)
return r; return r;
} }