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

Function ipsec_getsaidx

freebsd/net/if_ipsec.c:340–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340static struct secasindex *
341ipsec_getsaidx(struct ipsec_softc *sc, int dir, sa_family_t af)
342{
343 struct secpolicy *sp;
344
345 sp = ipsec_getpolicy(sc, dir, af);
346 if (sp == NULL)
347 return (NULL);
348 return (&sp->req[0]->saidx);
349}
350
351static int
352ipsec_transmit(struct ifnet *ifp, struct mbuf *m)

Callers 6

ipsec_if_inputFunction · 0.85
ipsec_ioctlFunction · 0.85
ipsec_set_runningFunction · 0.85
ipsec_srcaddrFunction · 0.85
ipsec_set_reqidFunction · 0.85
ipsec_set_addressesFunction · 0.85

Calls 1

ipsec_getpolicyFunction · 0.85

Tested by

no test coverage detected