Realm verbosity
PATCH 1/2 Realm verbosity
The realm match should identify itself in lowercase like other matches.
extensions/libipt_realm.c +4 -4
@@ -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 ,
Patrick McHardy
AppliedQuoted 1 line · Simon Lodal
The realm match should identify itself in lowercase like other matches.
Applied, thanks.