Lines Matching refs:rp
95 struct rawcb *rp = sotorawcb(so);
103 if (rp == 0)
108 rp->rcb_socket = so;
109 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family;
110 rp->rcb_proto.sp_protocol = proto;
112 LIST_INSERT_HEAD(&rawcb_list, rp, list);
122 raw_detach(struct rawcb *rp)
124 struct socket *so = rp->rcb_socket;
134 LIST_REMOVE(rp, list);
137 if (rp->rcb_laddr)
138 m_freem(dtom(rp->rcb_laddr));
139 rp->rcb_laddr = 0;
141 rp->rcb_socket = NULL;
142 FREE((caddr_t)(rp), M_PCB);
149 raw_disconnect(struct rawcb *rp)
152 if (rp->rcb_faddr)
153 m_freem(dtom(rp->rcb_faddr));
154 rp->rcb_faddr = 0;
156 if (rp->rcb_socket->so_state & SS_NOFDREF)
157 raw_detach(rp);
167 struct rawcb *rp;
171 rp = sotorawcb(so);
173 rp->rcb_laddr = mtod(nam, struct sockaddr *);