]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: bridge: fix endian of vlan protocol
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Feb 2022 08:47:14 +0000 (17:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Feb 2022 08:47:17 +0000 (17:47 +0900)
Fixes #22469.

src/network/netdev/bridge.c

index 7c38708121b6c6cbaa5cdadbb973cd41ab3550f2..15edc7aed64ff287f438833f99584ba27c6f5bbe 100644 (file)
@@ -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;
         }