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

Function xform_detach

freebsd/netipsec/subr_ipsec.c:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void
194xform_detach(void *data)
195{
196 struct xformsw *xsp = (struct xformsw *)data;
197
198 XFORMS_LOCK();
199 LIST_REMOVE(xsp, chain);
200 XFORMS_UNLOCK();
201
202 /* Delete all SAs related to this xform. */
203 key_delete_xform(xsp);
204 if (xsp->xf_cntr & IPSEC_MODULE_ENABLED)
205 ipsec_kmod_drain(&xsp->xf_cntr);
206}
207
208/*
209 * Initialize transform support in an sav.

Callers 2

ipcomp_detachFunction · 0.85
tcpmd5_modeventFunction · 0.85

Calls 2

key_delete_xformFunction · 0.85
ipsec_kmod_drainFunction · 0.85

Tested by

no test coverage detected