Lines Matching defs:spi
345 "prop#=%d, prot-id=%s, spi-size=%d, #trns=%d\n",
907 /* SPI must be updated later. */
1067 "invalid spi size: %d.\n",
1370 /* check SPI length when IKE. */
1560 * NOTE: this function make spi value clear.
1625 * update responder's spi
1636 u_int8_t *spi;
1668 * XXX SPI bits are left-filled, for use with IPComp.
1669 * we should be switching to variable-length spi field...
1671 spi = (u_int8_t *)&pr->spi;
1672 spi += sizeof(pr->spi);
1673 spi -= pr->spisize;
1674 memcpy((caddr_t)p->prop + sizeof(*p->prop), spi, pr->spisize);
1922 "SPI size isn't zero, but IKE proposal.\n");
1930 "invalid SPI size=%d for IPSEC proposal.\n",
1939 "invalid SPI size=%d for IPCOMP proposal.\n",
2950 const u_int8_t *spi;
2955 p = vmalloc(sizeof(*prop) + sizeof(pr->spi));
2966 spi = (const u_int8_t *)&pr->spi;
2971 * construct 16bit SPI (CPI).
2973 * generate 32bit SPI. otherwise we cannot interoeprate
2974 * with nodes that uses 32bit SPI, in case we are initiator.
2977 spi += sizeof(pr->spi) - sizeof(u_int16_t);
2978 p->l -= sizeof(pr->spi);
2982 prop->spi_size = sizeof(pr->spi);
2985 memcpy(prop + 1, spi, prop->spi_size);