Lines Matching refs:pcb
242 static int ipsec4_setspidx_inpcb(struct mbuf *, struct inpcb *pcb);
244 static int ipsec6_setspidx_in6pcb(struct mbuf *, struct in6pcb *pcb);
343 /* set spidx in pcb */
348 /* set spidx in pcb */
605 /* set spidx in pcb */
843 ipsec4_setspidx_inpcb(m, pcb)
845 struct inpcb *pcb;
854 if (pcb == NULL)
856 if (pcb->inp_sp == NULL)
858 if (pcb->inp_sp->sp_out == NULL || pcb->inp_sp->sp_in == NULL)
861 bzero(&pcb->inp_sp->sp_in->spidx, sizeof(*spidx));
862 bzero(&pcb->inp_sp->sp_out->spidx, sizeof(*spidx));
864 spidx = &pcb->inp_sp->sp_in->spidx;
870 spidx = &pcb->inp_sp->sp_out->spidx;
879 bzero(&pcb->inp_sp->sp_in->spidx, sizeof(*spidx));
880 bzero(&pcb->inp_sp->sp_out->spidx, sizeof(*spidx));
886 ipsec6_setspidx_in6pcb(m, pcb)
888 struct in6pcb *pcb;
894 if (pcb == NULL)
896 if (pcb->in6p_sp == NULL)
898 if (pcb->in6p_sp->sp_out == NULL || pcb->in6p_sp->sp_in == NULL)
901 bzero(&pcb->in6p_sp->sp_in->spidx, sizeof(*spidx));
902 bzero(&pcb->in6p_sp->sp_out->spidx, sizeof(*spidx));
904 spidx = &pcb->in6p_sp->sp_in->spidx;
910 spidx = &pcb->in6p_sp->sp_out->spidx;
919 bzero(&pcb->in6p_sp->sp_in->spidx, sizeof(*spidx));
920 bzero(&pcb->in6p_sp->sp_out->spidx, sizeof(*spidx));