From: Yu Watanabe Date: Thu, 10 Feb 2022 08:47:14 +0000 (+0900) Subject: network: bridge: fix endian of vlan protocol X-Git-Tag: v251-rc1~314^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6eb35be8e0fa5f1f00dddd558cf4dc3642d9e53e;p=thirdparty%2Fsystemd.git network: bridge: fix endian of vlan protocol Fixes #22469. --- diff --git a/src/network/netdev/bridge.c b/src/network/netdev/bridge.c index 7c38708121b..15edc7aed64 100644 --- a/src/network/netdev/bridge.c +++ b/src/network/netdev/bridge.c @@ -121,7 +121,7 @@ static int netdev_bridge_post_create_message(NetDev *netdev, sd_netlink_message } 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) return r; }