From 6eb35be8e0fa5f1f00dddd558cf4dc3642d9e53e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 10 Feb 2022 17:47:14 +0900 Subject: [PATCH] network: bridge: fix endian of vlan protocol Fixes #22469. --- src/network/netdev/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/netdev/bridge.c b/src/network/netdev/bridge.c index 7c38708121..15edc7aed6 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; }