diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org> | 2005-01-19 14:35:44 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org> | 2005-01-19 14:35:44 +0000 |
commit | 98345bbd0ede53c5d17593262acf1f9ec236bf83 (patch) | |
tree | c625db5f7f1b1853f7af2bd4c04c626869d80d1f /ipset_iphash.c | |
parent | 3b1dac5ab7bce05210a0ff88b50a7244722d4138 (diff) |
Version 2.1 released: few bugs fixed and nethash type added
(see ChangeLog)
Diffstat (limited to 'ipset_iphash.c')
-rw-r--r-- | ipset_iphash.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ipset_iphash.c b/ipset_iphash.c index 8d6cda6..a17efac 100644 --- a/ipset_iphash.c +++ b/ipset_iphash.c @@ -127,11 +127,13 @@ int create_parse(int c, char *argv[], void *data, unsigned *flags) /* Final check; exit if not ok. */ void create_final(void *data, unsigned int flags) { +#ifdef IPSET_DEBUG struct ip_set_req_iphash_create *mydata = (struct ip_set_req_iphash_create *) data; DP("hashsize %u probes %u resize %u", mydata->hashsize, mydata->probes, mydata->resize); +#endif } /* Create commandline options */ @@ -238,7 +240,8 @@ void saveips(struct set *set, void *data, size_t len, unsigned options) while (offset < len) { ip = data + offset; if (*ip) - printf("-A %s %s\n", set->name, ip_tostring(*ip, options)); + printf("-A %s %s\n", set->name, + ip_tostring(*ip, options)); offset += sizeof(ip_set_ip_t); } } @@ -255,7 +258,6 @@ void usage(void) static struct settype settype_iphash = { .typename = SETTYPE_NAME, - .typecode = IPSET_TYPE_IP, .protocol_version = IP_SET_PROTOCOL_VERSION, /* Create */ @@ -277,6 +279,11 @@ static struct settype settype_iphash = { .printips_sorted = &printips, .saveheader = &saveheader, .saveips = &saveips, + + /* Bindings */ + .bindip_tostring = &ip_tostring, + .bindip_parse = &parse_ip, + .usage = &usage, }; |