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.h | |
parent | 3b1dac5ab7bce05210a0ff88b50a7244722d4138 (diff) |
Version 2.1 released: few bugs fixed and nethash type added
(see ChangeLog)
Diffstat (limited to 'ipset.h')
-rw-r--r-- | ipset.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -87,7 +87,6 @@ struct settype { struct settype *next; char typename[IP_SET_MAXNAMELEN]; - char typecode; int protocol_version; @@ -146,6 +145,12 @@ struct settype { /* Print save for all IPs */ void (*saveips) (struct set *set, void *data, size_t len, unsigned options); + /* Conver a single IP (binding) to string */ + char * (*bindip_tostring)(ip_set_ip_t ip, unsigned options); + + /* Parse an IP at restoring bindings. FIXME */ + void (*bindip_parse) (const char *str, ip_set_ip_t * ip); + /* Print usage */ void (*usage) (void); @@ -163,6 +168,7 @@ extern void settype_register(struct settype *settype); extern void exit_error(enum exittype status, char *msg, ...); extern char *ip_tostring(ip_set_ip_t ip, unsigned options); +extern char *ip_tostring_numeric(ip_set_ip_t ip); extern void parse_ip(const char *str, ip_set_ip_t * ip); extern void parse_mask(const char *str, ip_set_ip_t * mask); extern void parse_ipandmask(const char *str, ip_set_ip_t * ip, |