From d71dd93599b932693f045301424c2276cd25a87e Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 9 Oct 2017 18:43:04 +0200 Subject: Userspace revision handling is reworked In order to make it simpler and more straightforward to express the revisions of the set type, all keywords and their parsing are separated from the individual set types. All backward compatibility arguments are recognized and ignored arguments are supported. Recognized but ignored arguments will be removed in a later release. --- lib/parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/parse.c') diff --git a/lib/parse.c b/lib/parse.c index 88d2888..bc8e777 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -631,7 +631,7 @@ ipset_parse_proto_port(struct ipset_session *session, case IPPROTO_ICMP: if (family != NFPROTO_IPV4) { syntax_err("Protocol ICMP can be used " - "with family INET only"); + "with family inet only"); goto error; } err = ipset_parse_icmp(session, opt, a); @@ -639,7 +639,7 @@ ipset_parse_proto_port(struct ipset_session *session, case IPPROTO_ICMPV6: if (family != NFPROTO_IPV6) { syntax_err("Protocol ICMPv6 can be used " - "with family INET6 only"); + "with family inet6 only"); goto error; } err = ipset_parse_icmpv6(session, opt, a); @@ -742,7 +742,7 @@ ipset_parse_family(struct ipset_session *session, else if (STREQ(str, "any") || STREQ(str, "unspec")) family = NFPROTO_UNSPEC; else - return syntax_err("unknown INET family %s", str); + return syntax_err("unknown inet family %s", str); return ipset_data_set(data, opt, &family); } -- cgit v1.2.3