Lines Matching defs:spi
341 char *spi;
404 /* get spi if specified and allocate */
411 spi = val2str((char *)(notify + 1), notify->spi_size);
415 "doi=%d proto_id=%d spi=%s(size=%d).\n",
417 ntohl(notify->doi), notify->proto_id, spi, notify->spi_size);
419 racoon_free(spi);
462 } spi;
505 "delete payload with strange spi "
531 "delete payload with strange spi "
543 /* need to handle both 16bit/32bit SPI */
544 memset(&spi, 0, sizeof(spi));
545 if (delete->spi_size == sizeof(spi.spi16[1])) {
546 memcpy(&spi.spi16[1], delete + 1,
547 sizeof(spi.spi16[1]));
548 } else if (delete->spi_size == sizeof(spi.spi32))
549 memcpy(&spi.spi32, delete + 1, sizeof(spi.spi32));
552 "delete payload with strange spi "
558 &spi.spi32, num_spi);
619 * pfkey msg. It sends always single SPI.
631 u_int8_t *spi;
653 * I send inbound SAs's SPI only at the moment because I can't
673 * XXX SPI bits are left-filled, for use with IPComp.
674 * we should be switching to variable-length spi field...
676 spi = (u_int8_t *)&pr->spi;
677 spi += sizeof(pr->spi);
678 spi -= pr->spisize;
679 memcpy(d + 1, spi, pr->spisize);
789 * note on SPI size: which description is correct? I have chosen
793 * Initiator/Responder cookie and SPI has no meaning, SPI size = 0.
795 * by cookie and SPI has no meaning, 0 <= SPI size <= 16.
852 /* XXX must be get proper spi */
870 *(u_int32_t *)(n + 1) = pr->spi;
1049 * XXX Which is SPI to be included, inbound or outbound ?
1089 *(u_int32_t *)(n + 1) = pr->spi; /* XXX */
1100 purge_isakmp_spi(proto, spi, n)
1102 isakmp_index *spi; /*network byteorder*/
1109 iph1 = getph1byindex(&spi[i]);
1114 "purged ISAKMP-SA proto_id=%s spi=%s.\n",
1116 isakmp_pindex(&spi[i], 0));
1127 purge_ipsec_spi(dst0, proto, spi, n)
1130 u_int32_t *spi; /*network byteorder*/
1150 plog(LLV_DEBUG2, LOCATION, NULL, "SPI: %08X\n", ntohl(spi[0]));
1240 "check spi(packet)=%u spi(db)=%u.\n",
1241 ntohl(spi[i]), ntohl(sa->sadb_sa_spi));
1242 if (spi[i] != sa->sadb_sa_spi)
1255 iph2 = getph2bysaidx(src, dst, proto, spi[i]);
1264 "purged IPsec-SA proto_id=%s spi=%u.\n",
1266 ntohl(spi[i]));
1455 "purging spi=%u.\n", ntohl(sa->sadb_sa_spi));
1631 "DPD: remote (ISAKMP-SA spi=%s) seems to be dead.\n",