]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_meta_bridge: Fix get NFT_META_BRI_IIFVPROTO in network byteorder
authorwenxu <wenxu@ucloud.cn>
Wed, 28 Aug 2019 15:02:33 +0000 (23:02 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Aug 2019 00:49:04 +0000 (02:49 +0200)
commit99a5c3bd6acc864b584fa6cd78fd3c5e2b17bd23
treec923fab91f5699105b0bcbeba769f00b6819b3be
parent3df4602d97047e6ec3a7d687f7e1f43b70094115
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: 59869d978ca5 ("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>
net/bridge/netfilter/nft_meta_bridge.c