From 75fd5f1cd6fff96a6aef97a14f7916c984da53ef Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 28 Jul 2017 12:29:35 +0200 Subject: rt: tcpmss get support Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- include/linux/netfilter/nf_tables.h | 1 + src/expr/rt.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index 4766f50..2e174d8 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -815,6 +815,7 @@ enum nft_rt_keys { NFT_RT_CLASSID, NFT_RT_NEXTHOP4, NFT_RT_NEXTHOP6, + NFT_RT_TCPMSS, }; /** diff --git a/src/expr/rt.c b/src/expr/rt.c index 5088e66..62c01a0 100644 --- a/src/expr/rt.c +++ b/src/expr/rt.c @@ -20,7 +20,7 @@ #include #ifndef NFT_RT_MAX -#define NFT_RT_MAX (NFT_RT_NEXTHOP6 + 1) +#define NFT_RT_MAX (NFT_RT_TCPMSS + 1) #endif struct nftnl_expr_rt { @@ -120,6 +120,7 @@ static const char *rt_key2str_array[NFT_RT_MAX] = { [NFT_RT_CLASSID] = "classid", [NFT_RT_NEXTHOP4] = "nexthop4", [NFT_RT_NEXTHOP6] = "nexthop6", + [NFT_RT_TCPMSS] = "tcpmss", }; static const char *rt_key2str(uint8_t key) -- cgit v1.2.3