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

Function kdebug_secpolicy_state

freebsd/netipsec/key_debug.c:590–607  ·  view source on GitHub ↗

%%%: about SPD and SAD */

Source from the content-addressed store, hash-verified

588#ifdef _KERNEL
589/* %%%: about SPD and SAD */
590const char*
591kdebug_secpolicy_state(u_int state)
592{
593
594 switch (state) {
595 case IPSEC_SPSTATE_DEAD:
596 return ("dead");
597 case IPSEC_SPSTATE_LARVAL:
598 return ("larval");
599 case IPSEC_SPSTATE_ALIVE:
600 return ("alive");
601 case IPSEC_SPSTATE_PCB:
602 return ("pcb");
603 case IPSEC_SPSTATE_IFNET:
604 return ("ifnet");
605 }
606 return ("unknown");
607}
608
609const char*
610kdebug_secpolicy_policy(u_int policy)

Callers 1

kdebug_secpolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected