Lines Matching refs:pcb_sp
227 static int ipsec_set_policy(struct secpolicy **pcb_sp,
229 static int ipsec_get_policy(struct secpolicy *pcb_sp, struct mbuf **mp);
1219 ipsec_init_policy(so, pcb_sp)
1221 struct inpcbpolicy **pcb_sp;
1226 if (so == NULL || pcb_sp == NULL)
1260 *pcb_sp = new;
1357 struct secpolicy **pcb_sp,
1368 if (pcb_sp == NULL || *pcb_sp == NULL || request == NULL)
1395 key_freesp(*pcb_sp, KEY_SADB_UNLOCKED);
1396 *pcb_sp = newsp;
1405 ipsec_get_policy(pcb_sp, mp)
1406 struct secpolicy *pcb_sp;
1412 if (pcb_sp == NULL || mp == NULL)
1415 *mp = key_sp2msg(pcb_sp);
1438 struct secpolicy **pcb_sp;
1457 pcb_sp = &inp->inp_sp->sp_in;
1460 pcb_sp = &inp->inp_sp->sp_out;
1472 return ipsec_set_policy(pcb_sp, optname, request, len, priv);
1483 struct secpolicy *pcb_sp;
1504 pcb_sp = inp->inp_sp->sp_in;
1507 pcb_sp = inp->inp_sp->sp_out;
1515 return ipsec_get_policy(pcb_sp, mp);
1557 struct secpolicy **pcb_sp;
1576 pcb_sp = &in6p->in6p_sp->sp_in;
1579 pcb_sp = &in6p->in6p_sp->sp_out;
1591 return ipsec_set_policy(pcb_sp, optname, request, len, priv);
1602 struct secpolicy *pcb_sp;
1621 pcb_sp = in6p->in6p_sp->sp_in;
1624 pcb_sp = in6p->in6p_sp->sp_out;
1632 return ipsec_get_policy(pcb_sp, mp);