mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
netfilter: nft_meta_bridge: Fix get NFT_META_BRI_IIFVPROTO in network byteorder
Get the vlan_proto of ingress bridge in network byteorder as userspace expects. Otherwise this is inconsistent with NFT_META_PROTOCOL. Fixes: 2a3a93ef0ba5 ("netfilter: nft_meta_bridge: Add NFT_META_BRI_IIFVPROTO support") Signed-off-by: wenxu <wenxu@ucloud.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
de20900fbe
commit
daf1de9078
@ -53,7 +53,7 @@ static void nft_meta_bridge_get_eval(const struct nft_expr *expr,
|
||||
goto err;
|
||||
|
||||
br_vlan_get_proto(br_dev, &p_proto);
|
||||
nft_reg_store16(dest, p_proto);
|
||||
nft_reg_store16(dest, htons(p_proto));
|
||||
return;
|
||||
}
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user