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

Lines Matching refs:sav

110 		/*%%%%% this needs to change - no sav in ipsecrequest any more */
111 if (isr->sav == NULL)
113 if (isr->sav->state != SADB_SASTATE_MATURE
114 && isr->sav->state != SADB_SASTATE_DYING)
118 algo = ah_algorithm_lookup(isr->sav->alg_auth);
129 hdrsiz = (((*algo->sumsiz)(isr->sav) + 3) & ~(4 - 1));
130 if (isr->sav->flags & SADB_X_EXT_OLD)
159 ah4_output(m, sav)
161 struct secasvar *sav;
176 if ((sav->flags & SADB_X_EXT_OLD) == 0 && !sav->replay) {
179 "sav->replay is null: %x->%x, SPI=%u\n",
182 (u_int32_t)ntohl(sav->spi)));
188 algo = ah_algorithm_lookup(sav->alg_auth);
191 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
196 spi = sav->spi;
201 if (sav->flags & SADB_X_EXT_OLD) {
203 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/
207 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/
249 if (sav->flags & SADB_X_EXT_OLD) {
268 if (sav->replay->count == ~0) {
269 if ((sav->flags & SADB_X_EXT_CYCSEQ) == 0) {
273 ipsec_logsastr(sav)));
280 sav->replay->count++;
286 ahdr->ah_seq = htonl(sav->replay->count);
320 error = ah4_calccksum(m, (caddr_t)ahsumpos, plen, algo, sav);
336 ipsecstat.out_ahhist[sav->alg_auth]++;
338 key_sa_recordxfer(sav, m);
346 ah_hdrlen(sav)
347 struct secasvar *sav;
352 algo = ah_algorithm_lookup(sav->alg_auth);
355 if (sav->flags & SADB_X_EXT_OLD) {
357 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/
361 plen = ((*algo->sumsiz)(sav) + 3) & ~(4 - 1); /*XXX pad to 8byte?*/
373 ah6_output(m, nexthdrp, md, sav)
377 struct secasvar *sav;
395 ahlen = ah_hdrlen(sav);
435 if ((sav->flags & SADB_X_EXT_OLD) == 0 && !sav->replay) {
437 "sav->replay is null: SPI=%u\n",
438 (u_int32_t)ntohl(sav->spi)));
444 algo = ah_algorithm_lookup(sav->alg_auth);
447 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
452 spi = sav->spi;
457 if (sav->flags & SADB_X_EXT_OLD) {
478 if (sav->replay->count == ~0) {
479 if ((sav->flags & SADB_X_EXT_CYCSEQ) == 0) {
483 ipsec_logsastr(sav)));
490 sav->replay->count++;
496 ahdr->ah_seq = htonl(sav->replay->count);
504 error = ah6_calccksum(m, (caddr_t)ahsumpos, plen, algo, sav);
510 key_sa_recordxfer(sav, m);
512 IPSEC_STAT_INCREMENT(ipsec6stat.out_ahhist[sav->alg_auth]);