Searched refs:inp_sp (Results 1 – 8 of 8) sorted by relevance
322 pcbsp = sotoinpcb(so)->inp_sp; in ipsec4_getpolicybysock()1033 if (pcb->inp_sp == NULL) { in ipsec4_setspidx_inpcb()1036 if (pcb->inp_sp->sp_out == NULL || pcb->inp_sp->sp_in == NULL) { in ipsec4_setspidx_inpcb()1040 bzero(&pcb->inp_sp->sp_in->spidx, sizeof(*spidx)); in ipsec4_setspidx_inpcb()1041 bzero(&pcb->inp_sp->sp_out->spidx, sizeof(*spidx)); in ipsec4_setspidx_inpcb()1043 spidx = &pcb->inp_sp->sp_in->spidx; in ipsec4_setspidx_inpcb()1050 spidx = &pcb->inp_sp->sp_out->spidx; in ipsec4_setspidx_inpcb()1060 bzero(&pcb->inp_sp->sp_in->spidx, sizeof(*spidx)); in ipsec4_setspidx_inpcb()1061 bzero(&pcb->inp_sp->sp_out->spidx, sizeof(*spidx)); in ipsec4_setspidx_inpcb()1655 if (inp->inp_sp == NULL) { in ipsec4_set_policy()[all …]
237 struct inpcbpolicy *inp_sp; /* for IPsec */ member472 _INPCB_PTR(struct inpcbpolicy *) inp_sp;619 #define in6p_sp inp_sp
647 if (inp->inp_sp != NULL && ipsec_setsocket(m, so) != 0) { in rip_output()
2485 if (sotoinpcb(so)->inp_sp) { in tcp_create_server_socket()2488 if (inp->inp_sp == NULL) { in tcp_create_server_socket()2489 error = ipsec_init_policy(*so2, &inp->inp_sp); in tcp_create_server_socket()2491 if (error != 0 || ipsec_copy_policy(sotoinpcb(so)->inp_sp, inp->inp_sp)) { in tcp_create_server_socket()
2045 if (inp->inp_sp != NULL && ipsec_setsocket(m, inp->inp_socket) != 0) { in udp_output()
3191 if (inp->inp_sp != NULL) { in tcp_output()
1976 if (inp->inp_sp != NULL) { in in_pcbdetach()
1104 if (tp != NULL && tp->t_inpcb->inp_sp != NULL && in tcp_respond()