MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pf_init_threshold

Function pf_init_threshold

freebsd/netpfil/pf/pf.c:501–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499#endif /* INET6 */
500
501static void
502pf_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
511static void
512pf_add_threshold(struct pf_threshold *threshold)

Callers 1

pf_insert_src_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected