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)
|
static void condition_help(void)
|
||||||
{
|
{
|
||||||
printf("condition match options:\n"
|
printf(
|
||||||
"--condition [!] filename "
|
"condition match options:\n"
|
||||||
"Match on boolean value stored in /proc file\n");
|
"[!] --condition name Match on boolean value stored in procfs file\n"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct option condition_opts[] = {
|
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,
|
exit_error(PARAMETER_PROBLEM,
|
||||||
"Can't specify multiple conditions");
|
"Can't specify multiple conditions");
|
||||||
|
|
||||||
check_inverse(optarg, &invert, &optind, 0);
|
|
||||||
|
|
||||||
if (strlen(optarg) < sizeof(info->name))
|
if (strlen(optarg) < sizeof(info->name))
|
||||||
strcpy(info->name, optarg);
|
strcpy(info->name, optarg);
|
||||||
else
|
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
|
.TP
|
||||||
.BI "--condition " "[!] \fIfilename\fP"
|
[\fB!\fP] \fB--condition\fP \fIname\fP
|
||||||
Match on boolean value stored in /proc/net/ipt_condition/filename file
|
Match on boolean value stored in /proc/net/nf_condition/\fIname\fP.
|
||||||
|
Reference in New Issue
Block a user