Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

242 static void hashlimit_parse(struct xt_option_call *cb)
244 struct xt_hashlimit_info *info = cb->data;
246 xtables_option_parse(cb);
247 switch (cb->entry->id) {
249 if (cb->invert)
251 if (!parse_rate(cb->arg, &info->cfg.avg))
253 "--hashlimit-upto", cb->arg);
256 if (!cb->invert)
258 if (!parse_rate(cb->arg, &info->cfg.avg))
260 "--hashlimit-above", cb->arg);
263 if (parse_mode(&info->cfg.mode, cb->arg) < 0)
265 "--hashlimit-mode", cb->arg);
270 static void hashlimit_mt_parse(struct xt_option_call *cb)
272 struct xt_hashlimit_mtinfo1 *info = cb->data;
274 xtables_option_parse(cb);
275 switch (cb->entry->id) {
277 if (cb->invert)
279 if (!parse_rate(cb->arg, &info->cfg.avg))
281 "--hashlimit-upto", cb->arg);
284 if (!cb->invert)
286 if (!parse_rate(cb->arg, &info->cfg.avg))
288 "--hashlimit-above", cb->arg);
291 if (parse_mode(&info->cfg.mode, cb->arg) < 0)
293 "--hashlimit-mode", cb->arg);
296 info->cfg.srcmask = cb->val.hlen;
299 info->cfg.dstmask = cb->val.hlen;
304 static void hashlimit_check(struct xt_fcheck_call *cb)
306 if (!(cb->xflags & (F_UPTO | F_ABOVE)))