XXX make it sysctl-configurable? */
| 6258 | |
| 6259 | /* XXX make it sysctl-configurable? */ |
| 6260 | static void |
| 6261 | key_getcomb_setlifetime(struct sadb_comb *comb) |
| 6262 | { |
| 6263 | |
| 6264 | comb->sadb_comb_soft_allocations = 1; |
| 6265 | comb->sadb_comb_hard_allocations = 1; |
| 6266 | comb->sadb_comb_soft_bytes = 0; |
| 6267 | comb->sadb_comb_hard_bytes = 0; |
| 6268 | comb->sadb_comb_hard_addtime = 86400; /* 1 day */ |
| 6269 | comb->sadb_comb_soft_addtime = comb->sadb_comb_soft_addtime * 80 / 100; |
| 6270 | comb->sadb_comb_soft_usetime = 28800; /* 8 hours */ |
| 6271 | comb->sadb_comb_hard_usetime = comb->sadb_comb_hard_usetime * 80 / 100; |
| 6272 | } |
| 6273 | |
| 6274 | /* |
| 6275 | * XXX reorder combinations by preference |
no outgoing calls
no test coverage detected