Skip to contentSkip to conversation

netfilter: nft_ct: include direction when dumping NFT_CT_L3PROTOCOL key

PATCH Applied Florian Westphal 2 participants 2 messages Dec 18, 2015

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 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.

---

net/netfilter/nft_ct.c +1 -0
index 8cbca34..9399215 100644
@@ -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:
Signature · 1 line
2.4.10
maintainer Applied
#1 lore raw
Quoted 5 lines · Florian Westphal

one nft userspace test case fails with

'ct l3proto original ipv4' mismatches 'ct l3proto ipv4'

... because NFTA_CT_DIRECTION attr is missing.

Applied, thanks Florian.