summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.c4
-rw-r--r--lib/session.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/parse.c b/lib/parse.c
index e347c69..a07168d 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -21,6 +21,10 @@
#include <libipset/utils.h> /* string utilities */
#include <libipset/parse.h> /* prototypes */
+#ifndef ULLONG_MAX
+#define ULLONG_MAX 18446744073709551615ULL
+#endif
+
/* Parse input data */
#define cidr_separator(str) ipset_strchr(str, IPSET_CIDR_SEPARATOR)
diff --git a/lib/session.c b/lib/session.c
index 64d5c4a..36716f0 100644
--- a/lib/session.c
+++ b/lib/session.c
@@ -488,13 +488,16 @@ attr2data(struct ipset_session *session, struct nlattr *nla[],
break;
}
}
+#ifdef IPSET_DEBUG
if (type == IPSET_ATTR_TYPENAME)
D("nla typename %s", (char *) d);
+#endif
ret = ipset_data_set(data, attr->opt, d);
+#ifdef IPSET_DEBUG
if (type == IPSET_ATTR_TYPENAME)
D("nla typename %s",
(char *) ipset_data_get(data, IPSET_OPT_TYPENAME));
-
+#endif
return ret;
}