Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

50 static void statistic_parse(struct xt_option_call *cb)
52 struct xt_statistic_info *info = cb->data;
54 if (cb->invert)
57 xtables_option_parse(cb);
58 switch (cb->entry->id) {
60 if (strcmp(cb->arg, "random") == 0)
62 else if (strcmp(cb->arg, "nth") == 0)
66 cb->arg);
69 info->u.random.probability = lround(0x80000000 * cb->val.dbl);
77 static void statistic_check(struct xt_fcheck_call *cb)
79 struct xt_statistic_info *info = cb->data;
82 !(cb->xflags & F_PROBABILITY))
87 !(cb->xflags & (F_EVERY | F_PACKET)))