mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 21:54:57 +02:00
IPMARK: print missing --shift parameter
This commit is contained in:

committed by
Jan Engelhardt

parent
23e83aa04c
commit
9fb2ffe1d3
@@ -1,5 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
- IPMARK: print missing --shift parameter
|
||||||
|
|
||||||
|
|
||||||
Xtables-addons 1.16 (May 27 2009)
|
Xtables-addons 1.16 (May 27 2009)
|
||||||
=================================
|
=================================
|
||||||
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
|
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
|
||||||
|
@@ -97,6 +97,7 @@ static int ipmark_tg_parse(int c, char **argv, int invert, unsigned int *flags,
|
|||||||
if (!xtables_strtoui(optarg, NULL, &n, 0, 128))
|
if (!xtables_strtoui(optarg, NULL, &n, 0, 128))
|
||||||
xtables_param_act(XTF_BAD_VALUE, "IPMARK", "--shift", optarg);
|
xtables_param_act(XTF_BAD_VALUE, "IPMARK", "--shift", optarg);
|
||||||
info->shift = n;
|
info->shift = n;
|
||||||
|
*flags |= FL_SHIFT;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,6 +122,8 @@ ipmark_tg_print(const void *entry, const struct xt_entry_target *target,
|
|||||||
else
|
else
|
||||||
printf("IPMARK dst ip ");
|
printf("IPMARK dst ip ");
|
||||||
|
|
||||||
|
if (info->shift != 0)
|
||||||
|
printf("shift %u ", (unsigned int)info->shift);
|
||||||
if (info->andmask != ~0U)
|
if (info->andmask != ~0U)
|
||||||
printf("and 0x%x ", (unsigned int)info->andmask);
|
printf("and 0x%x ", (unsigned int)info->andmask);
|
||||||
if (info->ormask != 0)
|
if (info->ormask != 0)
|
||||||
@@ -137,6 +140,8 @@ ipmark_tg_save(const void *entry, const struct xt_entry_target *target)
|
|||||||
else
|
else
|
||||||
printf("--addr dst ");
|
printf("--addr dst ");
|
||||||
|
|
||||||
|
if (info->shift != 0)
|
||||||
|
printf("--shift %u ", (unsigned int)info->shift);
|
||||||
if (info->andmask != ~0U)
|
if (info->andmask != ~0U)
|
||||||
printf("--and-mask 0x%x ", (unsigned int)info->andmask);
|
printf("--and-mask 0x%x ", (unsigned int)info->andmask);
|
||||||
if (info->ormask != 0)
|
if (info->ormask != 0)
|
||||||
|
Reference in New Issue
Block a user