Lines Matching refs:rp
112 struct rawcb *rp;
124 LIST_FOREACH(rp, &rawcb_list, list) {
125 if (rp->rcb_proto.sp_family != proto->sp_family)
127 if (rp->rcb_proto.sp_protocol &&
128 rp->rcb_proto.sp_protocol != proto->sp_protocol)
140 if (rp->rcb_laddr && !equal(rp->rcb_laddr, dst))
142 if (rp->rcb_faddr && !equal(rp->rcb_faddr, src))
157 last = rp->rcb_socket;
185 struct rawcb *rp = sotorawcb(so);
194 if (rp == 0)
196 raw_disconnect(rp);
207 struct rawcb *rp = sotorawcb(so);
209 if (rp == 0)
234 struct rawcb *rp = sotorawcb(so);
242 if (rp == 0)
245 raw_detach(rp);
252 struct rawcb *rp = sotorawcb(so);
254 if (rp == 0)
256 if (rp->rcb_faddr == 0) {
259 raw_disconnect(rp);
269 struct rawcb *rp = sotorawcb(so);
271 if (rp == 0)
273 if (rp->rcb_faddr == 0) {
276 *nam = dup_sockaddr(rp->rcb_faddr, 1);
288 struct rawcb *rp = sotorawcb(so);
297 if (rp == 0) {
312 if (rp->rcb_faddr) {
316 rp->rcb_faddr = nam;
317 } else if (rp->rcb_faddr == 0) {
324 rp->rcb_faddr = NULL;
336 struct rawcb *rp = sotorawcb(so);
344 if (rp == 0)
353 struct rawcb *rp = sotorawcb(so);
355 if (rp == 0)
357 if (rp->rcb_laddr == 0)
359 *nam = dup_sockaddr(rp->rcb_laddr, 1);