mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
condition: remove support for nonstandard inversion
This commit is contained in:
@@ -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
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user