Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

46 static void statistic_parse(struct xt_option_call *cb)
48 struct xt_statistic_info *info = cb->data;
50 if (cb->invert)
53 xtables_option_parse(cb);
54 switch (cb->entry->id) {
56 if (strcmp(cb->arg, "random") == 0)
58 else if (strcmp(cb->arg, "nth") == 0)
62 cb->arg);
65 info->u.random.probability = lround(0x80000000 * cb->val.dbl);
73 static void statistic_check(struct xt_fcheck_call *cb)
75 struct xt_statistic_info *info = cb->data;
78 !(cb->xflags & F_PROBABILITY))
83 !(cb->xflags & (F_EVERY | F_PACKET)))