Lines Matching refs:sav
96 struct secasvar *sav = NULL;
126 sav = key_allocsa(AF_INET, (caddr_t)&ip->ip_src,
128 if (sav != NULL
129 && (sav->state == SADB_SASTATE_MATURE
130 || sav->state == SADB_SASTATE_DYING)) {
131 cpi = sav->alg_enc; /*XXX*/
201 if (sav) {
202 key_sa_recordxfer(sav, m);
207 key_freesav(sav, KEY_SADB_UNLOCKED);
208 sav = NULL;
226 if (sav)
227 key_freesav(sav, KEY_SADB_UNLOCKED);
249 struct secasvar *sav = NULL;
270 sav = key_allocsa(AF_INET6, (caddr_t)&ip6->ip6_src,
272 if (sav != NULL
273 && (sav->state == SADB_SASTATE_MATURE
274 || sav->state == SADB_SASTATE_DYING)) {
275 cpi = sav->alg_enc; /*XXX*/
321 if (sav) {
322 key_sa_recordxfer(sav, m);
327 key_freesav(sav, KEY_SADB_UNLOCKED);
328 sav = NULL;
338 if (sav)
339 key_freesav(sav, KEY_SADB_UNLOCKED);