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

Function key_havesp

freebsd/netipsec/key.c:799–805  ·  view source on GitHub ↗

* Return 0 when there are known to be no SP's for the specified * direction. Otherwise return 1. This is used by IPsec code * to optimize performance. */

Source from the content-addressed store, hash-verified

797 * to optimize performance.
798 */
799int
800key_havesp(u_int dir)
801{
802
803 return (dir == IPSEC_DIR_INBOUND || dir == IPSEC_DIR_OUTBOUND ?
804 TAILQ_FIRST(&V_sptree[dir]) != NULL : 1);
805}
806
807/* %%% IPsec policy management */
808/*

Callers 6

ipsec4_getpolicyFunction · 0.85
ipsec4_capabilityFunction · 0.85
ipsec6_getpolicyFunction · 0.85
ipsec6_capabilityFunction · 0.85
ipsec_hdrsiz_inpcbFunction · 0.85
ipsec_kmod_capabilityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected