summaryrefslogtreecommitdiffstats
path: root/src/expr/rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/rt.c')
-rw-r--r--src/expr/rt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/expr/rt.c b/src/expr/rt.c
index 62c01a0..ab56831 100644
--- a/src/expr/rt.c
+++ b/src/expr/rt.c
@@ -19,10 +19,6 @@
#include <libnftnl/expr.h>
#include <libnftnl/rule.h>
-#ifndef NFT_RT_MAX
-#define NFT_RT_MAX (NFT_RT_TCPMSS + 1)
-#endif
-
struct nftnl_expr_rt {
enum nft_rt_keys key;
enum nft_registers dreg;
@@ -116,7 +112,7 @@ nftnl_expr_rt_parse(struct nftnl_expr *e, struct nlattr *attr)
return 0;
}
-static const char *rt_key2str_array[NFT_RT_MAX] = {
+static const char *rt_key2str_array[NFT_RT_MAX + 1] = {
[NFT_RT_CLASSID] = "classid",
[NFT_RT_NEXTHOP4] = "nexthop4",
[NFT_RT_NEXTHOP6] = "nexthop6",