Lines Matching refs:cfg
103 r->cfg.burst = IPT_HASHLIMIT_BURST; in init()
104 r->cfg.gc_interval = IPT_HASHLIMIT_GCINTERVAL; in init()
105 r->cfg.expire = IPT_HASHLIMIT_EXPIRE; in init()
119 r->cfg.mode = 0; in parse_mode()
125 r->cfg.mode |= IPT_HASHLIMIT_HASH_DIP; in parse_mode()
127 r->cfg.mode |= IPT_HASHLIMIT_HASH_SIP; in parse_mode()
129 r->cfg.mode |= IPT_HASHLIMIT_HASH_SPT; in parse_mode()
131 r->cfg.mode |= IPT_HASHLIMIT_HASH_DPT; in parse_mode()
165 if (!parse_rate(optarg, &r->cfg.avg)) in parse()
176 r->cfg.burst = num; in parse()
184 r->cfg.size = num; in parse()
192 r->cfg.max = num; in parse()
202 r->cfg.gc_interval = num; in parse()
211 r->cfg.expire = num; in parse()
279 if (r->cfg.mode & IPT_HASHLIMIT_HASH_SIP) { in print_mode()
285 if (r->cfg.mode & IPT_HASHLIMIT_HASH_SPT) { in print_mode()
291 if (r->cfg.mode & IPT_HASHLIMIT_HASH_DIP) { in print_mode()
297 if (r->cfg.mode & IPT_HASHLIMIT_HASH_DPT) { in print_mode()
313 fputs("limit: avg ", stdout); print_rate(r->cfg.avg); in print()
314 printf("burst %u ", r->cfg.burst); in print()
317 if (r->cfg.size) in print()
318 printf("htable-size %u ", r->cfg.size); in print()
319 if (r->cfg.max) in print()
320 printf("htable-max %u ", r->cfg.max); in print()
321 if (r->cfg.gc_interval != IPT_HASHLIMIT_GCINTERVAL) in print()
322 printf("htable-gcinterval %u ", r->cfg.gc_interval); in print()
323 if (r->cfg.expire != IPT_HASHLIMIT_EXPIRE) in print()
324 printf("htable-expire %u ", r->cfg.expire); in print()
333 fputs("--hashlimit ", stdout); print_rate(r->cfg.avg); in save()
334 if (r->cfg.burst != IPT_HASHLIMIT_BURST) in save()
335 printf("--hashlimit-burst %u ", r->cfg.burst); in save()
342 if (r->cfg.size) in save()
343 printf("--hashlimit-htable-size %u ", r->cfg.size); in save()
344 if (r->cfg.max) in save()
345 printf("--hashlimit-htable-max %u ", r->cfg.max); in save()
346 if (r->cfg.gc_interval != IPT_HASHLIMIT_GCINTERVAL) in save()
347 printf("--hashlimit-htable-gcinterval %u", r->cfg.gc_interval); in save()
348 if (r->cfg.expire != IPT_HASHLIMIT_EXPIRE) in save()
349 printf("--hashlimit-htable-expire %u ", r->cfg.expire); in save()