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

Function ipsec_check_reqid

freebsd/net/if_ipsec.c:900–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900static int
901ipsec_check_reqid(uint32_t reqid)
902{
903 struct ipsec_softc *sc;
904
905 sx_assert(&ipsec_ioctl_sx, SA_XLOCKED);
906 CK_LIST_FOREACH(sc, ipsec_idhash(reqid), idhash) {
907 if (sc->reqid == reqid)
908 return (EEXIST);
909 }
910 return (0);
911}
912
913/*
914 * We use key_newreqid() to automatically obtain unique reqid.

Callers 2

ipsec_init_reqidFunction · 0.85
ipsec_set_reqidFunction · 0.85

Calls 1

ipsec_idhashFunction · 0.85

Tested by

no test coverage detected