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

Function def_policy_init

freebsd/netipsec/ipsec.c:1504–1515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1502}
1503
1504static void
1505def_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
1517static void
1518def_policy_uninit(const void *unused __unused)

Callers

nothing calls this directly

Calls 3

key_newspFunction · 0.85
key_bumpspgenFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected