From 36e483b303b11890e870eba5a8c798b170244cb3 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Sat, 14 Jan 2012 15:06:00 +0100 Subject: 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. --- include/libipset/parse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libipset/parse.h') 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; -- cgit v1.2.3