mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
xt_CHECKSUM: use xtables_param_act
This commit is contained in:

committed by
Jan Engelhardt

parent
283974cbbe
commit
fe49f9b6a4
@@ -33,9 +33,8 @@ static int CHECKSUM_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'F':
|
case 'F':
|
||||||
if (*flags)
|
xtables_param_act(XTF_ONLY_ONCE, "CHECKSUM", "--checksum-fill",
|
||||||
xtables_error(PARAMETER_PROBLEM,
|
*flags & XT_CHECKSUM_OP_FILL);
|
||||||
"CHECKSUM target: Only use --checksum-fill ONCE!");
|
|
||||||
einfo->operation = XT_CHECKSUM_OP_FILL;
|
einfo->operation = XT_CHECKSUM_OP_FILL;
|
||||||
*flags |= XT_CHECKSUM_OP_FILL;
|
*flags |= XT_CHECKSUM_OP_FILL;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user