]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
rt: tcpmss get support
authorFlorian Westphal <fw@strlen.de>
Fri, 28 Jul 2017 10:29:35 +0000 (12:29 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 21 Aug 2017 14:37:38 +0000 (16:37 +0200)
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nf_tables.h
src/expr/rt.c

index 4766f5091b5f18ba015248be3d2e3d47ace721d1..2e174d820190d27b00453962a24471ed05458333 100644 (file)
@@ -815,6 +815,7 @@ enum nft_rt_keys {
        NFT_RT_CLASSID,
        NFT_RT_NEXTHOP4,
        NFT_RT_NEXTHOP6,
+       NFT_RT_TCPMSS,
 };
 
 /**
index 5088e6630c95a5cd1a4f40115c8e0bc68122b473..62c01a0be0f523edf2802d9281b88b67b6640128 100644 (file)
@@ -20,7 +20,7 @@
 #include <libnftnl/rule.h>
 
 #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)