diff options
author | Florian Westphal <fw@strlen.de> | 2015-12-18 14:32:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-12-18 14:45:45 +0100 |
commit | d5f79b6e4d169039903cc869e16e59ad861dd479 (patch) | |
tree | 01625fd46858cd68f396956cbd4f80bf57c5386d /net | |
parent | aa47e42c60dfa31f81a3fe357451acfe1a12ca1e (diff) | |
download | linux-d5f79b6e4d169039903cc869e16e59ad861dd479.tar.bz2 |
netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key
one nft userspace test case fails with
'ct l3proto original ipv4' mismatches 'ct l3proto ipv4'
... because NFTA_CT_DIRECTION attr is missing.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_ct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index 8cbca3432f90..939921532764 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -366,6 +366,7 @@ static int nft_ct_get_dump(struct sk_buff *skb, const struct nft_expr *expr) goto nla_put_failure; switch (priv->key) { + case NFT_CT_L3PROTOCOL: case NFT_CT_PROTOCOL: case NFT_CT_SRC: case NFT_CT_DST: |