summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/data_reg.h2
-rw-r--r--include/libnftnl/set.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/data_reg.h b/include/data_reg.h
index f2675f2..10517ba 100644
--- a/include/data_reg.h
+++ b/include/data_reg.h
@@ -19,7 +19,7 @@ union nftnl_data_reg {
uint32_t len;
};
struct {
- int verdict;
+ uint32_t verdict;
const char *chain;
};
};
diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h
index 6640ad9..2ea2e9a 100644
--- a/include/libnftnl/set.h
+++ b/include/libnftnl/set.h
@@ -104,7 +104,9 @@ enum {
NFTNL_SET_ELEM_USERDATA,
NFTNL_SET_ELEM_EXPR,
NFTNL_SET_ELEM_OBJREF,
+ __NFTNL_SET_ELEM_MAX
};
+#define NFTNL_SET_ELEM_MAX (__NFTNL_SET_ELEM_MAX - 1)
struct nftnl_set_elem;