Skip to contentSkip to conversation

netfilter: xt_tcpmss: extend checkentry to ipv6

PATCH New Florian Westphal 1 participant 1 message Jul 4

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: xt_tcpmss: extend checkentry to ipv6

sashiko reports:
Is it intentional that the new parameter validation callback is applied only to the NFPROTO_IPV4 match?

Fixes 68fc6c6470d6 ("netfilter: xt_tcpmss: add checkentry for parameter validation")
---
 net/netfilter/xt_tcpmss.c | 1 +
 1 file changed, 1 insertion(+)
net/netfilter/xt_tcpmss.c +1 -0
index b08b077d7f0a..5f7f97dbace5 100644
@@ -103,6 +103,7 @@ static struct xt_match tcpmss_mt_reg[] __read_mostly = {
 	{
 		.name		= "tcpmss",
 		.family		= NFPROTO_IPV6,
+		.checkentry	= tcpmss_mt_check,
 		.match		= tcpmss_mt,
 		.matchsize	= sizeof(struct xt_tcpmss_match_info),
 		.proto		= IPPROTO_TCP,
Signature · 1 line
2.55.0