Lines Matching refs:cur_sainfo
150 static struct sainfo *cur_sainfo; variable
1126 cur_sainfo = newsainfo();
1127 if (cur_sainfo == NULL) {
1137 if (cur_sainfo->algs[algclass_ipsec_enc] == 0) {
1139 sainfo2str(cur_sainfo));
1142 if (cur_sainfo->algs[algclass_ipsec_auth] == 0) {
1144 sainfo2str(cur_sainfo));
1147 if (cur_sainfo->algs[algclass_ipsec_comp] == 0) {
1149 sainfo2str(cur_sainfo));
1154 check = getsainfo(cur_sainfo->idsrc,
1155 cur_sainfo->iddst,
1156 cur_sainfo->id_i,
1157 cur_sainfo->remoteid);
1158 if (check && (!check->idsrc && !cur_sainfo->idsrc)) {
1160 sainfo2str(cur_sainfo));
1163 inssainfo(cur_sainfo);
1170 cur_sainfo->idsrc = NULL;
1171 cur_sainfo->iddst = NULL;
1175 cur_sainfo->idsrc = NULL;
1176 cur_sainfo->iddst = $2;
1180 cur_sainfo->idsrc = $1;
1181 cur_sainfo->iddst = NULL;
1185 cur_sainfo->idsrc = $1;
1186 cur_sainfo->iddst = $2;
1334 cur_sainfo->id_i = NULL;
1345 cur_sainfo->id_i = vmalloc(sizeof(*id_b) + idv->l);
1346 if (cur_sainfo->id_i == NULL) {
1351 id_b = (struct ipsecdoi_id_b *)cur_sainfo->id_i->v;
1357 memcpy(cur_sainfo->id_i->v + sizeof(*id_b),
1364 if ((cur_sainfo->group = vdup($2)) == NULL) {
1381 cur_sainfo->pfs_group = $2;
1386 cur_sainfo->remoteid = $2;
1391 cur_sainfo->lifetime = $3 * $4;
1400 cur_sainfo->lifebyte = fix_lifebyte($3 * $4);
1401 if (cur_sainfo->lifebyte == 0)
1425 inssainfoalg(&cur_sainfo->algs[cur_algclass], $1);
1429 inssainfoalg(&cur_sainfo->algs[cur_algclass], $1);