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

Function key_newreqid

freebsd/netipsec/key.c:1739–1751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737}
1738
1739uint32_t
1740key_newreqid(void)
1741{
1742 static uint32_t auto_reqid = IPSEC_MANUAL_REQID_MAX + 1;
1743
1744 if (auto_reqid == ~0)
1745 auto_reqid = IPSEC_MANUAL_REQID_MAX + 1;
1746 else
1747 auto_reqid++;
1748
1749 /* XXX should be unique check */
1750 return (auto_reqid);
1751}
1752
1753/*
1754 * copy secpolicy struct to sadb_x_policy structure indicated.

Callers 2

ipsec_init_reqidFunction · 0.85
key_msg2spFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected