From 97a12ba3f184a76c406eb5622ec21a4d4d6fc8bf Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 16 Jun 2010 22:49:16 +0200 Subject: configure/Makefile and debug fixes --- lib/parse.c | 4 ++++ lib/session.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') 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 /* string utilities */ #include /* 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; } -- cgit v1.2.3