• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netkey/

Lines Matching defs:spi

246 /* max count of trial for the decision of spi value */
250 /* minimum spi value to allocate automatically. */
254 /* maximun spi value to allocate automatically. */
1033 key_allocsa(family, src, dst, proto, spi)
1036 u_int32_t spi;
1076 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
1077 if (sav->spi != spi)
1453 sav->refcnt, sav, (u_int32_t)ntohl(sav->spi)));
2245 /* when requesting to allocate spi ranged */
3252 key_checkspidup(saidx, spi)
3254 u_int32_t spi;
3268 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
3269 if (sav->spi != spi)
3285 key_setspi(sav, spi)
3287 u_int32_t spi;
3290 sav->spi = spi;
3293 LIST_INSERT_HEAD(&spihash[SPIHASH(spi)], sav, spihash);
3304 key_getsavbyspi(sah, spi)
3306 u_int32_t spi;
3314 LIST_FOREACH(sav, &spihash[SPIHASH(spi)], spihash) {
3315 if (sav->spi != spi)
3674 if (ntohl(sav->spi) >= 0 && ntohl(sav->spi) <= 255) {
3677 (u_int32_t)ntohl(sav->spi)));
3721 && ntohl(sav->spi) >= 0x10000) {
4051 p->sadb_sa_spi = sav->spi;
5151 * from the IKMPd, to assign a unique spi value, to hang on the INBOUND
5171 u_int32_t spi;
5249 spi = key_do_getnewspi((struct sadb_spirange *)mhp->ext[SADB_EXT_SPIRANGE],
5251 if (spi == 0) {
5275 /* set spi */
5276 key_setspi(newsav, htonl(spi));
5327 m_sa->sadb_sa_spi = htonl(spi);
5381 /* set spi range to allocate */
5417 /* when requesting to allocate spi ranged */
5429 ipseclog((LOG_DEBUG, "key_do_getnewspi: to allocate spi is failed.\n"));
5549 "key_update: no such a SA found (spi:%u)\n",
5564 if (sav->spi != sa0->sadb_sa_spi) {
5568 (u_int32_t)ntohl(sav->spi),