Lines Matching refs:srcid
1652 struct sadb_ident *srcid = NULL, *dstid = NULL;
2363 if (srcid != NULL) {
2369 alloclen = sizeof (*srcid) +
2371 srcid = malloc(alloclen);
2372 if (srcid == NULL)
2373 Bail("malloc(srcid)");
2375 srcid->sadb_ident_type = parseidtype(*argv, ebuf);
2377 srcid->sadb_ident_len = SADB_8TO64(alloclen);
2378 srcid->sadb_ident_exttype = SADB_EXT_IDENTITY_SRC;
2379 srcid->sadb_ident_reserved = 0;
2380 srcid->sadb_ident_id = 0; /* Not useful here. */
2381 (void) strlcpy((char *)(srcid + 1), *argv, alloclen);
2830 if (srcid != NULL) {
2831 bcopy(srcid, nexthdr, SADB_64TO8(srcid->sadb_ident_len));
2832 nexthdr += srcid->sadb_ident_len;
2833 free(srcid);