netfilter: nft_meta_bridge: Fix get NFT_META_BRI_IIFVPROTO in network byteorder
Subsystems (3)
PATCH 1/1 netfilter: nft_meta_bridge: Fix get NFT_META_BRI_IIFVPROTO in network byteorder
From: wenxu <[email protected]>
Get the vlan_proto of ingress bridge in network byteorder
Fixes 2a3a93ef0ba5 ("netfilter: nft_meta_bridge: Add NFT_META_BRI_IIFVPROTO support")
Signed-off-by wenxu <[email protected]>
--- net/bridge/netfilter/nft_meta_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bridge/netfilter/nft_meta_bridge.c +1 -1
@@ -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 :
Signature · 1 line
1.8.3.1
Quoted 3 lines · On Wed, Aug 28, 2019 at 11:02:33PM +0800, [email protected] wrote:
From: wenxu <[email protected]>
Get the
vlan_protoof ingress bridge in network byteorder
Applied, thanks.