Lines Matching refs:sp_out
1640 struct secpolicy *sp_out = NULL, *sp_in = NULL; local
1762 sp_out = getspbyspid(xpl->sadb_x_policy_id);
1763 if (sp_out == NULL) {
1769 "suitable outbound SP found: %s.\n", spidx2str(&sp_out->spidx));
1776 memcpy(&spidx.src, &sp_out->spidx.dst, sizeof(spidx.src));
1777 memcpy(&spidx.dst, &sp_out->spidx.src, sizeof(spidx.dst));
1778 spidx.prefs = sp_out->spidx.prefd;
1779 spidx.prefd = sp_out->spidx.prefs;
1780 spidx.ul_proto = sp_out->spidx.ul_proto;
1835 "new acquire %s\n", spidx2str(&sp_out->spidx));
1841 idsrc = ipsecdoi_sockaddr2id((struct sockaddr *)&sp_out->spidx.src,
1842 sp_out->spidx.prefs, sp_out->spidx.ul_proto);
1846 spidx2str(&sp_out->spidx));
1850 iddst = ipsecdoi_sockaddr2id((struct sockaddr *)&sp_out->spidx.dst,
1851 sp_out->spidx.prefd, sp_out->spidx.ul_proto);
1855 spidx2str(&sp_out->spidx));
1885 if (set_proposal_from_policy(iph2[n], sp_out, sp_in) < 0) {