Lines Matching defs:candidate
857 struct secasvar *sav, *nextsav, *candidate, *natt_candidate, *no_natt_candidate, *d;
862 candidate = NULL;
893 candidate = natt_candidate;
899 candidate = no_natt_candidate;
905 if (candidate->lft_c == NULL || sav->lft_c == NULL)
911 if (candidate->lft_c->sadb_lifetime_addtime >
923 if (candidate->lft_c->sadb_lifetime_addtime <
925 d = candidate;
935 * suitable candidate and the lifetime of the SA is not
996 candidate = no_natt_candidate;
998 candidate = natt_candidate;
1000 candidate = natt_candidate;
1003 candidate = natt_candidate;
1005 candidate = no_natt_candidate;
1007 if (candidate) {
1008 candidate->refcnt++;
1012 candidate->refcnt, candidate));
1014 return candidate;
1249 struct secasvar *currsav, *nextsav, *candidate;
1255 candidate = NULL;
1270 if (candidate == NULL) {
1271 candidate = currsav;
1278 if (candidate->lft_c == NULL || currsav->lft_c == NULL)
1284 if (candidate->lft_c->sadb_lifetime_addtime >
1286 candidate = currsav;
1293 if (candidate->lft_c->sadb_lifetime_addtime <
1295 candidate = currsav;
1298 if (candidate) {
1299 outsav->natt_encapsulated_src_port = candidate->natt_encapsulated_src_port;