Lines Matching refs:rp
146 struct rawcb *rp;
151 MALLOC(rp, struct rawcb *, sizeof *rp, M_PCB, M_WAITOK); /* XXX */
152 if (rp == 0)
154 bzero(rp, sizeof *rp);
163 so->so_pcb = (caddr_t)rp;
165 rp = sotorawcb(so);
167 FREE(rp, M_PCB);
173 switch(rp->rcb_proto.sp_protocol) {
188 rp->rcb_faddr = &route_src;
218 struct rawcb *rp = sotorawcb(so);
221 if (rp != 0) {
222 switch(rp->rcb_proto.sp_protocol) {
622 struct rawcb *rp = 0;
634 rp = sotorawcb(so);
653 if (rp)
654 rp->rcb_proto.sp_family = 0; /* Avoid us */
662 if (rp)
663 rp->rcb_proto.sp_family = PF_ROUTE;