Lines Matching defs:spi

274 /* max count of trial for the decision of spi value */
278 /* minimum spi value to allocate automatically. */
282 /* maximun spi value to allocate automatically. */
563 u_int32_t spi,
1115 u_int32_t spi)
1155 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
1156 if (sav->spi != spi)
1532 sav->refcnt, sav, (u_int32_t)ntohl(sav->spi)));
2352 /* when requesting to allocate spi ranged */
3289 u_int32_t spi,
3321 key_setspi(newsav, spi);
3335 spi,
3357 if (spi && key_auth && key_auth_len && key_enc && key_enc_len) {
3486 u_int32_t spi)
3500 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
3501 if (sav->spi != spi)
3519 u_int32_t spi)
3522 sav->spi = spi;
3525 LIST_INSERT_HEAD(&spihash[SPIHASH(spi)], sav, spihash);
3538 u_int32_t spi)
3546 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
3547 if (sav->spi != spi)
3908 u_int32_t spi,
3940 key_setspi(sav, htonl(spi));
4127 /* No reason to test if this is >= 0, because ntohl(sav->spi) is unsigned. */
4128 if (ntohl(sav->spi) <= 255) {
4131 (u_int32_t)ntohl(sav->spi)));
4175 && ntohl(sav->spi) >= 0x10000) {
4508 p->sadb_sa_spi = sav->spi;
5702 * from the IKMPd, to assign a unique spi value, to hang on the INBOUND
5722 u_int32_t spi;
5802 spi = key_do_getnewspi((struct sadb_spirange *)
5804 if (spi == 0) {
5811 /* create a new SA index: key_addspi is always used for inbound spi */
5828 /* set spi */
5829 key_setspi(newsav, htonl(spi));
5880 m_sa->sadb_sa_spi = htonl(spi);
5924 u_int32_t spi;
5965 spi = key_do_getnewspi(spirange, &saidx);
5969 return spi;
5990 /* set spi range to allocate */
6026 /* when requesting to allocate spi ranged */
6038 ipseclog((LOG_DEBUG, "key_do_getnewspi: to allocate spi is failed.\n"));
6160 "key_update: no such a SA found (spi:%u)\n",
6175 if (sav->spi != sa0->sadb_sa_spi) {
6179 (u_int32_t)ntohl(sav->spi),
6357 /* create a new SA header: key_addspi is always used for outbound spi */
6853 * get SA stats by spi.
6858 key_getsastatbyspi_one (u_int32_t spi,
6876 sav = key_getsavbyspi(sah, spi);
6878 stat->spi = sav->spi;
6915 if (key_getsastatbyspi_one(stat_arg[cur].spi,