Skip to contentSkip to conversation

netfilter: nft_meta: permit pkttype mangling in ip/ip6 prerouting

PATCH In review Liping Zhang 2 participants 2 messages Oct 19, 2016 – Oct 21, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: nft_meta: permit pkttype mangling in ip/ip6 prerouting

From: Liping Zhang <[email protected]>

After supporting this, we can combine it with hash expression to emulate the 'cluster match'.

---
 net/netfilter/nft_meta.c | 5 +++++
 1 file changed, 5 insertions(+)
net/netfilter/nft_meta.c +5 -0
index 6c1e024..6499402 100644
@@ -310,6 +310,11 @@ int nft_meta_set_validate(const struct nft_ctx *ctx,
 	case NFPROTO_NETDEV:
 		hooks = 1 << NF_NETDEV_INGRESS;
 		break;
+	case NFPROTO_IPV4:
+	case NFPROTO_IPV6:
+	case NFPROTO_INET:
+		hooks = 1 << NF_INET_PRE_ROUTING;
+		break;
 	default:
 		return -EOPNOTSUPP;
 	}
Signature · 1 line
2.5.5
#1 lore raw
Quoted 4 lines · Liping Zhang

From: Liping Zhang <[email protected]>

After supporting this, we can combine it with hash expression to emulate the 'cluster match'.

Also applied, thanks Liping.