Lines Matching refs:in6p
1549 ipsec6_set_policy(in6p, optname, request, len, priv)
1550 struct in6pcb *in6p;
1561 if (in6p == NULL || request == NULL)
1567 if (in6p->in6p_sp == NULL) {
1568 error = ipsec_init_policy(in6p->inp_socket, &in6p->in6p_sp);
1576 pcb_sp = &in6p->in6p_sp->sp_in;
1579 pcb_sp = &in6p->in6p_sp->sp_out;
1595 ipsec6_get_policy(in6p, request, len, mp)
1596 struct in6pcb *in6p;
1606 if (in6p == NULL || request == NULL || mp == NULL)
1612 if (in6p->in6p_sp == NULL) {
1613 error = ipsec_init_policy(in6p->inp_socket, &in6p->in6p_sp);
1621 pcb_sp = in6p->in6p_sp->sp_in;
1624 pcb_sp = in6p->in6p_sp->sp_out;
1636 ipsec6_delete_pcbpolicy(in6p)
1637 struct in6pcb *in6p;
1641 if (in6p == NULL)
1644 if (in6p->in6p_sp == NULL)
1647 if (in6p->in6p_sp->sp_in != NULL) {
1648 key_freesp(in6p->in6p_sp->sp_in, KEY_SADB_UNLOCKED);
1649 in6p->in6p_sp->sp_in = NULL;
1652 if (in6p->in6p_sp->sp_out != NULL) {
1653 key_freesp(in6p->in6p_sp->sp_out, KEY_SADB_UNLOCKED);
1654 in6p->in6p_sp->sp_out = NULL;
1657 ipsec_delpcbpolicy(in6p->in6p_sp);
1658 in6p->in6p_sp = NULL;
1962 ipsec6_in_reject(m, in6p)
1964 struct in6pcb *in6p;
1968 if (in6p == NULL)
1970 if (in6p->in6p_socket)
1971 return ipsec6_in_reject_so(m, in6p->in6p_socket);
1973 panic("ipsec6_in_reject: invalid in6p/socket");
2103 ipsec6_hdrsiz(m, dir, in6p)
2106 struct in6pcb *in6p;
2116 if (in6p != NULL && in6p->in6p_socket == NULL)
2121 if (in6p == NULL)
2124 sp = ipsec6_getpolicybysock(m, dir, in6p->in6p_socket, &error);