• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/netipsec/

Lines Matching defs:spi

258 #define	SAVHASH_HASHVAL(spi)	(key_u32hash(spi) & V_savhash_mask)
259 #define SAVHASH_HASH(spi) &V_savhashtbl[SAVHASH_HASHVAL(spi)]
468 /* max count of trial for the decision of spi value */
472 /* minimum spi value to allocate automatically. */
476 /* maximun spi value to allocate automatically. */
1092 key_allocsa(union sockaddr_union *dst, uint8_t proto, uint32_t spi)
1102 LIST_FOREACH(sav, SAVHASH_HASH(spi), spihash) {
1103 if (sav->spi == spi)
1124 printf("%s: SA not found for spi %u proto %u dst %s\n",
1125 __func__, ntohl(spi), proto, ipsec_address(dst, buf,
2899 uint32_t spi, int *errp)
2921 if (ntohl(spi) <= 255) {
2923 __func__, ntohl(spi)));
2950 sav->spi = spi;
3023 LIST_INSERT_HEAD(SAVHASH_HASH(sav->spi), sav, spihash);
3147 key_checkspidup(uint32_t spi)
3154 LIST_FOREACH(sav, SAVHASH_HASH(spi), spihash) {
3155 if (sav->spi == spi)
3169 key_getsavbyspi(uint32_t spi)
3176 LIST_FOREACH(sav, SAVHASH_HASH(spi), spihash) {
3177 if (sav->spi != spi)
3485 ntohl(sav->spi) >= 0x10000) {
3799 p->sadb_sa_spi = sav->spi;
4803 * from the IKMPd, to assign a unique spi value, to hang on the INBOUND
4818 uint32_t reqid, spi;
4887 spi = key_do_getnewspi(
4889 if (spi == 0) {
4897 sav = key_newsav(mhp, &saidx, spi, &error);
4956 m_sa->sadb_sa_spi = spi; /* SPI is already in network byte order */
5006 /* set spi range to allocate */
5038 /* when requesting to allocate spi ranged */
5065 key_getsav_tcpmd5(struct secasindex *saidx, uint32_t *spi)
5091 if (spi == NULL) {
5097 LIST_FOREACH(sav, SAVHASH_HASH(*spi), spihash) {
5098 if (sav->spi == *spi)
5108 *spi = key_do_getnewspi(NULL, saidx);
5234 LIST_INSERT_HEAD(SAVHASH_HASH(newsav->spi), newsav, spihash);
5388 ntohl(sav->spi), sav->pid, mhp->msg->sadb_msg_pid));
5395 __func__, ntohl(sav->spi)));
5529 uint32_t reqid, spi;
5607 spi = sa0->sadb_sa_spi;
5614 sav = key_getsav_tcpmd5(&saidx, &spi);
5615 if (sav == NULL && spi == 0) {
5624 sav = key_getsavbyspi(spi);
5632 sav = key_newsav(mhp, &saidx, spi, &error);
6018 __func__, ntohl(sav->spi)));