Lines Matching refs:cfg
90 XTOPT_POINTER(s, cfg.burst)},
93 XTOPT_POINTER(s, cfg.size)},
96 XTOPT_POINTER(s, cfg.max)},
99 XTOPT_POINTER(s, cfg.gc_interval)},
102 XTOPT_POINTER(s, cfg.expire)},
123 XTOPT_POINTER(s, cfg.burst)},
126 XTOPT_POINTER(s, cfg.size)},
129 XTOPT_POINTER(s, cfg.max)},
132 XTOPT_POINTER(s, cfg.gc_interval)},
135 XTOPT_POINTER(s, cfg.expire)},
183 r->cfg.burst = XT_HASHLIMIT_BURST;
184 r->cfg.gc_interval = XT_HASHLIMIT_GCINTERVAL;
185 r->cfg.expire = XT_HASHLIMIT_EXPIRE;
193 info->cfg.mode = 0;
194 info->cfg.burst = XT_HASHLIMIT_BURST;
195 info->cfg.gc_interval = XT_HASHLIMIT_GCINTERVAL;
196 info->cfg.expire = XT_HASHLIMIT_EXPIRE;
197 info->cfg.srcmask = 32;
198 info->cfg.dstmask = 32;
205 info->cfg.mode = 0;
206 info->cfg.burst = XT_HASHLIMIT_BURST;
207 info->cfg.gc_interval = XT_HASHLIMIT_GCINTERVAL;
208 info->cfg.expire = XT_HASHLIMIT_EXPIRE;
209 info->cfg.srcmask = 128;
210 info->cfg.dstmask = 128;
250 info->cfg.mode |= XT_HASHLIMIT_INVERT;
251 if (!parse_rate(cb->arg, &info->cfg.avg))
257 info->cfg.mode |= XT_HASHLIMIT_INVERT;
258 if (!parse_rate(cb->arg, &info->cfg.avg))
263 if (parse_mode(&info->cfg.mode, cb->arg) < 0)
278 info->cfg.mode |= XT_HASHLIMIT_INVERT;
279 if (!parse_rate(cb->arg, &info->cfg.avg))
285 info->cfg.mode |= XT_HASHLIMIT_INVERT;
286 if (!parse_rate(cb->arg, &info->cfg.avg))
291 if (parse_mode(&info->cfg.mode, cb->arg) < 0)
296 info->cfg.srcmask = cb->val.hlen;
299 info->cfg.dstmask = cb->val.hlen;
364 fputs(" limit: avg", stdout); print_rate(r->cfg.avg);
365 printf(" burst %u", r->cfg.burst);
367 print_mode(r->cfg.mode, '-');
368 if (r->cfg.size)
369 printf(" htable-size %u", r->cfg.size);
370 if (r->cfg.max)
371 printf(" htable-max %u", r->cfg.max);
372 if (r->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
373 printf(" htable-gcinterval %u", r->cfg.gc_interval);
374 if (r->cfg.expire != XT_HASHLIMIT_EXPIRE)
375 printf(" htable-expire %u", r->cfg.expire);
381 if (info->cfg.mode & XT_HASHLIMIT_INVERT)
385 print_rate(info->cfg.avg);
386 printf(" burst %u", info->cfg.burst);
387 if (info->cfg.mode & (XT_HASHLIMIT_HASH_SIP | XT_HASHLIMIT_HASH_SPT |
390 print_mode(info->cfg.mode, '-');
392 if (info->cfg.size != 0)
393 printf(" htable-size %u", info->cfg.size);
394 if (info->cfg.max != 0)
395 printf(" htable-max %u", info->cfg.max);
396 if (info->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
397 printf(" htable-gcinterval %u", info->cfg.gc_interval);
398 if (info->cfg.expire != XT_HASHLIMIT_EXPIRE)
399 printf(" htable-expire %u", info->cfg.expire);
401 if (info->cfg.srcmask != dmask)
402 printf(" srcmask %u", info->cfg.srcmask);
403 if (info->cfg.dstmask != dmask)
404 printf(" dstmask %u", info->cfg.dstmask);
429 fputs(" --hashlimit", stdout); print_rate(r->cfg.avg);
430 printf(" --hashlimit-burst %u", r->cfg.burst);
433 print_mode(r->cfg.mode, ',');
437 if (r->cfg.size)
438 printf(" --hashlimit-htable-size %u", r->cfg.size);
439 if (r->cfg.max)
440 printf(" --hashlimit-htable-max %u", r->cfg.max);
441 if (r->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
442 printf(" --hashlimit-htable-gcinterval %u", r->cfg.gc_interval);
443 if (r->cfg.expire != XT_HASHLIMIT_EXPIRE)
444 printf(" --hashlimit-htable-expire %u", r->cfg.expire);
450 if (info->cfg.mode & XT_HASHLIMIT_INVERT)
454 print_rate(info->cfg.avg);
455 printf(" --hashlimit-burst %u", info->cfg.burst);
457 if (info->cfg.mode & (XT_HASHLIMIT_HASH_SIP | XT_HASHLIMIT_HASH_SPT |
460 print_mode(info->cfg.mode, ',');
465 if (info->cfg.size != 0)
466 printf(" --hashlimit-htable-size %u", info->cfg.size);
467 if (info->cfg.max != 0)
468 printf(" --hashlimit-htable-max %u", info->cfg.max);
469 if (info->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
470 printf(" --hashlimit-htable-gcinterval %u", info->cfg.gc_interval);
471 if (info->cfg.expire != XT_HASHLIMIT_EXPIRE)
472 printf(" --hashlimit-htable-expire %u", info->cfg.expire);
474 if (info->cfg.srcmask != dmask)
475 printf(" --hashlimit-srcmask %u", info->cfg.srcmask);
476 if (info->cfg.dstmask != dmask)
477 printf(" --hashlimit-dstmask %u", info->cfg.dstmask);