[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key
From:       "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date:       2015-12-31 22:51:33
Message-ID: 20151231225133.EFCD9661293 () gitolite ! kernel ! org
[Download RAW message or body]

Web:        https://git.kernel.org/torvalds/c/d5f79b6e4d169039903cc869e16e59ad861dd479
Commit:     d5f79b6e4d169039903cc869e16e59ad861dd479
Parent:     aa47e42c60dfa31f81a3fe357451acfe1a12ca1e
Refname:    refs/heads/master
Author:     Florian Westphal <fw@strlen.de>
AuthorDate: Fri Dec 18 14:32:07 2015 +0100
Committer:  Pablo Neira Ayuso <pablo@netfilter.org>
CommitDate: Fri Dec 18 14:45:45 2015 +0100

    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>
---
 net/netfilter/nft_ct.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index 8cbca34..9399215 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:
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic