Lines Matching refs:rp
110 struct rawcb *rp;
122 LIST_FOREACH(rp, &rawcb_list, list) {
123 if (rp->rcb_proto.sp_family != proto->sp_family)
125 if (rp->rcb_proto.sp_protocol &&
126 rp->rcb_proto.sp_protocol != proto->sp_protocol)
138 if (rp->rcb_laddr && !equal(rp->rcb_laddr, dst))
140 if (rp->rcb_faddr && !equal(rp->rcb_faddr, src))
155 last = rp->rcb_socket;
183 struct rawcb *rp = sotorawcb(so);
192 if (rp == 0)
194 raw_disconnect(rp);
205 struct rawcb *rp = sotorawcb(so);
207 if (rp == 0)
232 struct rawcb *rp = sotorawcb(so);
240 if (rp == 0)
243 raw_detach(rp);
250 struct rawcb *rp = sotorawcb(so);
252 if (rp == 0)
254 if (rp->rcb_faddr == 0) {
257 raw_disconnect(rp);
267 struct rawcb *rp = sotorawcb(so);
269 if (rp == 0)
271 if (rp->rcb_faddr == 0) {
274 *nam = dup_sockaddr(rp->rcb_faddr, 1);
286 struct rawcb *rp = sotorawcb(so);
295 if (rp == 0) {
315 if (rp->rcb_faddr) {
319 rp->rcb_faddr = nam;
320 } else if (rp->rcb_faddr == 0) {
327 rp->rcb_faddr = NULL;
339 struct rawcb *rp = sotorawcb(so);
347 if (rp == 0)
356 struct rawcb *rp = sotorawcb(so);
358 if (rp == 0)
360 if (rp->rcb_laddr == 0)
362 *nam = dup_sockaddr(rp->rcb_laddr, 1);