static int connmark_xlate(const struct xt_entry_match *match, struct xt_xlate *xl, int numeric) { const struct xt_connmark_info *info = (const void *)match->data; enum xt_op op = XT_OP_EQ; if (info->invert) op = XT_OP_NEQ; xt_xlate_add(xl, "ct mark"); print_mark_xlate(info->mark, info->mask, xl, op); return 1; }
static int mark_xlate(struct xt_xlate *xl, const struct xt_xlate_mt_params *params) { const struct xt_mark_info *info = (const void *)params->match->data; enum xt_op op = XT_OP_EQ; if (info->invert) op = XT_OP_NEQ; xt_xlate_add(xl, "mark"); print_mark_xlate(xl, info->mark, info->mask, op); return 1; }