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

Function ipsec4_pcbctl

freebsd/netipsec/ipsec_pcb.c:460–467  ·  view source on GitHub ↗

* IPSEC_PCBCTL() method implementation for IPv4. */

Source from the content-addressed store, hash-verified

458 * IPSEC_PCBCTL() method implementation for IPv4.
459 */
460int
461ipsec4_pcbctl(struct inpcb *inp, struct sockopt *sopt)
462{
463
464 if (sopt->sopt_name != IP_IPSEC_POLICY)
465 return (ENOPROTOOPT);
466 return (ipsec_control_pcbpolicy(inp, sopt));
467}
468#endif
469
470#ifdef INET6

Callers

nothing calls this directly

Calls 1

ipsec_control_pcbpolicyFunction · 0.85

Tested by

no test coverage detected