Skip to contentSkip to conversation

Realm verbosity

PATCH Applied Simon Lodal 2 participants 2 messages May 21, 2006 – May 24, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Realm verbosity

The realm match should identify itself in lowercase like other matches.

extensions/libipt_realm.c +4 -4
Index: iptables-1.3.5/extensions/libipt_realm.c
===================================================================
@@ -17,7 +17,7 @@
 help(void)
 {
 	printf(
-"REALM v%s options:\n"
+"realm v%s options:\n"
 " --realm [!] value[/mask]\n"
 "				Match realm\n"
 "\n", IPTABLES_VERSION);
@@ -49,7 +49,7 @@
 		} else
 			realminfo->mask = 0xffffffff;
 		if (*end != '\0' || end == optarg)
-			exit_error(PARAMETER_PROBLEM, "Bad REALM value `%s'", optarg);
+			exit_error(PARAMETER_PROBLEM, "Bad realm value `%s'", optarg);
 		if (invert)
 			realminfo->invert = 1;
 		*flags = 1;
@@ -81,7 +81,7 @@
 	if (ri->invert)
 		printf("! ");
 
-	printf("REALM match ");
+	printf("realm ");
 	print_realm(ri->id, ri->mask);
 }
 
@@ -105,7 +105,7 @@
 {
 	if (!flags)
 		exit_error(PARAMETER_PROBLEM,
-			   "REALM match: You must specify `--realm'");
+			   "realm match: You must specify `--realm'");
 }
 
 static struct iptables_match realm = { NULL,
#1 lore raw
Quoted 1 line · Simon Lodal

The realm match should identify itself in lowercase like other matches.

Applied, thanks.