Lines Matching refs:rp
165 struct rawcb *rp;
170 MALLOC(rp, struct rawcb *, sizeof *rp, M_PCB, M_WAITOK); /* XXX */
171 if (rp == 0)
173 bzero(rp, sizeof *rp);
182 so->so_pcb = (caddr_t)rp;
184 rp = sotorawcb(so);
186 FREE(rp, M_PCB);
192 switch(rp->rcb_proto.sp_protocol) {
207 rp->rcb_faddr = &route_src;
237 struct rawcb *rp = sotorawcb(so);
240 if (rp != 0) {
241 switch(rp->rcb_proto.sp_protocol) {
694 struct rawcb *rp = 0;
706 rp = sotorawcb(so);
726 if (rp)
727 rp->rcb_proto.sp_family = 0; /* Avoid us */
735 if (rp)
736 rp->rcb_proto.sp_family = PF_ROUTE;