Lines Matching refs:ddpsock
168 int ddp_socket_inuse(ddpsock, proto)
169 u_char ddpsock, proto;
173 if ((!proto || (proto == DDP_ATP)) && atp_inputQ[ddpsock])
175 if ((!proto || (proto == DDP_ADSP)) && adsp_inputQ[ddpsock])
177 if (ddp_handler[ddpsock].func)
181 if (pcb->lport == ddpsock &&
193 u_char ddpsock = local->sat_port;
204 if (ddpsock == 0) {
207 for (ddpsock = DDP_SOCKET_LAST;
208 ddpsock >= (DDP_SOCKET_1st_DYNAMIC + 1);
210 ddpsock--) {
211 if (! ddp_socket_inuse(ddpsock, pcb->ddptype))
214 if (ddpsock < (DDP_SOCKET_1st_DYNAMIC + 1))
219 if (ddpsock > DDP_SOCKET_LAST)
221 if (ddp_socket_inuse(ddpsock, pcb->ddptype))
225 pcb->lport = ddpsock;