Skip to content

Commit 6eb35be

Browse files
committed
network: bridge: fix endian of vlan protocol
Fixes systemd#22469.
1 parent 19ff06b commit 6eb35be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network/netdev/bridge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int netdev_bridge_post_create_message(NetDev *netdev, sd_netlink_message
121121
}
122122

123123
if (b->vlan_protocol >= 0) {
124-
r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_PROTOCOL, b->vlan_protocol);
124+
r = sd_netlink_message_append_u16(req, IFLA_BR_VLAN_PROTOCOL, htobe16(b->vlan_protocol));
125125
if (r < 0)
126126
return r;
127127
}

0 commit comments

Comments
 (0)