+- IPMARK: print missing --shift parameter
+
+
Xtables-addons 1.16 (May 27 2009)
=================================
- RAWNAT: make iptable_rawpost compile with 2.6.30-rc5
if (!xtables_strtoui(optarg, NULL, &n, 0, 128))
xtables_param_act(XTF_BAD_VALUE, "IPMARK", "--shift", optarg);
info->shift = n;
+ *flags |= FL_SHIFT;
return true;
}
const struct xt_ipmark_tginfo *info = (const void *)target->data;
if (info->selector == XT_IPMARK_SRC)
- printf("IPMARK src ip");
+ printf("IPMARK src ip ");
else
- printf("IPMARK dst ip");
+ printf("IPMARK dst ip ");
+ if (info->shift != 0)
+ printf("shift %u ", (unsigned int)info->shift);
if (info->andmask != ~0U)
- printf(" and 0x%x ", (unsigned int)info->andmask);
+ printf("and 0x%x ", (unsigned int)info->andmask);
if (info->ormask != 0)
- printf(" or 0x%x ", (unsigned int)info->ormask);
+ printf("or 0x%x ", (unsigned int)info->ormask);
}
static void
else
printf("--addr dst ");
+ if (info->shift != 0)
+ printf("--shift %u ", (unsigned int)info->shift);
if (info->andmask != ~0U)
printf("--and-mask 0x%x ", (unsigned int)info->andmask);
if (info->ormask != 0)