condition: remove support for nonstandard inversion

This commit is contained in:
Jan Engelhardt
2008-04-02 05:48:57 +02:00
parent 7dd8b1a678
commit 75f6f14aaf
2 changed files with 7 additions and 8 deletions

View File

@@ -9,9 +9,10 @@
static void condition_help(void)
{
printf("condition match options:\n"
"--condition [!] filename "
"Match on boolean value stored in /proc file\n");
printf(
"condition match options:\n"
"[!] --condition name Match on boolean value stored in procfs file\n"
);
}
static const struct option condition_opts[] = {
@@ -29,8 +30,6 @@ static int condition_parse(int c, char **argv, int invert, unsigned int *flags,
exit_error(PARAMETER_PROBLEM,
"Can't specify multiple conditions");
check_inverse(optarg, &invert, &optind, 0);
if (strlen(optarg) < sizeof(info->name))
strcpy(info->name, optarg);
else

View File

@@ -1,4 +1,4 @@
This matches if a specific /proc filename is '0' or '1'.
This matches if a specific condition variable is (un)set.
.TP
.BI "--condition " "[!] \fIfilename\fP"
Match on boolean value stored in /proc/net/ipt_condition/filename file
[\fB!\fP] \fB--condition\fP \fIname\fP
Match on boolean value stored in /proc/net/nf_condition/\fIname\fP.