summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-14 15:06:00 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-14 15:06:00 +0100
commit36e483b303b11890e870eba5a8c798b170244cb3 (patch)
tree51894eeecb17e00f76405043a2b394e1fdbd00c9 /include
parent64f47a74c303ba53a306e6ad4cd0c7f40a165eea (diff)
Support hostnames and service names with dash
The square brackets are introduced as an escape mechanism to enter hostnames or service names with dash in order to avoid mixing up the dash in the name with the range notation. Problem reported by Stephen Hemminger and Marc Guardiola.
Diffstat (limited to 'include')
-rw-r--r--include/libipset/parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libipset/parse.h b/include/libipset/parse.h
index 9f64a70..d18e3cc 100644
--- a/include/libipset/parse.h
+++ b/include/libipset/parse.h
@@ -15,6 +15,8 @@
#define IPSET_ELEM_SEPARATOR ","
#define IPSET_NAME_SEPARATOR ","
#define IPSET_PROTO_SEPARATOR ":"
+#define IPSET_ESCAPE_START "["
+#define IPSET_ESCAPE_END "]"
struct ipset_session;
struct ipset_arg;