Lines 1400-1410
ipfw_dyn_init(struct ip_fw_chain *chain)
Link Here
|
1400 |
|
1400 |
|
1401 |
V_ipfw_dyn_rule_zone = uma_zcreate("IPFW dynamic rule", |
1401 |
V_ipfw_dyn_rule_zone = uma_zcreate("IPFW dynamic rule", |
1402 |
sizeof(ipfw_dyn_rule), NULL, NULL, NULL, NULL, |
1402 |
sizeof(ipfw_dyn_rule), NULL, NULL, NULL, NULL, |
1403 |
UMA_ALIGN_PTR, 0); |
1403 |
UMA_ALIGN_PTR, UMA_ZONE_NOFREE); |
1404 |
|
1404 |
|
1405 |
/* Enforce limit on dynamic rules */ |
1405 |
/* Enforce limit on dynamic rules */ |
1406 |
uma_zone_set_max(V_ipfw_dyn_rule_zone, V_dyn_max); |
1406 |
uma_zone_set_max(V_ipfw_dyn_rule_zone, V_dyn_max); |
1407 |
|
1407 |
|
|
|
1408 |
/* Prefill the zone to make sure the limit is always reachable */ |
1409 |
uma_prealloc(V_ipfw_dyn_rule_zone, V_dyn_max); |
1410 |
|
1408 |
callout_init(&V_ipfw_timeout, 1); |
1411 |
callout_init(&V_ipfw_timeout, 1); |
1409 |
|
1412 |
|
1410 |
/* |
1413 |
/* |
1411 |
- |
|
|