| 499 | #endif /* INET6 */ |
| 500 | |
| 501 | static void |
| 502 | pf_init_threshold(struct pf_threshold *threshold, |
| 503 | u_int32_t limit, u_int32_t seconds) |
| 504 | { |
| 505 | threshold->limit = limit * PF_THRESHOLD_MULT; |
| 506 | threshold->seconds = seconds; |
| 507 | threshold->count = 0; |
| 508 | threshold->last = time_uptime; |
| 509 | } |
| 510 | |
| 511 | static void |
| 512 | pf_add_threshold(struct pf_threshold *threshold) |
no outgoing calls
no test coverage detected