| 1502 | } |
| 1503 | |
| 1504 | static void |
| 1505 | def_policy_init(const void *unused __unused) |
| 1506 | { |
| 1507 | |
| 1508 | V_def_policy = key_newsp(); |
| 1509 | if (V_def_policy != NULL) { |
| 1510 | V_def_policy->policy = IPSEC_POLICY_NONE; |
| 1511 | /* Force INPCB SP cache invalidation */ |
| 1512 | key_bumpspgen(); |
| 1513 | } else |
| 1514 | printf("%s: failed to initialize default policy\n", __func__); |
| 1515 | } |
| 1516 | |
| 1517 | static void |
| 1518 | def_policy_uninit(const void *unused __unused) |
nothing calls this directly
no test coverage detected