Lines Matching defs:socket

48 #include <sys/socket.h>
133 * Raw DDP socket option processing.
136 struct socket *so;
170 addr.inet.socket = at_pcb->lport;
305 * as the interface DDP socket addresses are tied to. Of course there can
423 * The user may have registered an NVE with the NBP on a socket. When the
424 * socket is closed, the NVE should be deleted from NBP's name table. The
425 * user should delete the NVE before the socket is shut down, but there
426 * may be circumstances when they can't. So, whenever a DDP socket is closed,
427 * this routine is used to notify NBP of the socket closure. This would
428 * help NBP get rid of all NVE's registered on the socket.
432 static int ot_ddp_check_socket(socket, pid)
433 unsigned char socket;
439 dPrintf(D_M_DDP, D_L_INFO, ("ot_ddp_check_socket: %d\n", socket));
441 if (gref->lport == socket && gref->pid == pid)
443 if ((atp_inputQ[socket] != NULL) && (atp_inputQ[socket] != (gref_t *)1)
444 && (atp_pidM[socket] == pid))
446 if ((adsp_inputQ[socket] != NULL) && (adsp_pidM[socket] == pid))
453 unsigned char socket,
463 if ((at_socket)socket == nve_entry->address.socket &&
466 ot_ddp_check_socket(nve_entry->address.socket,
561 ("Illegal destination socket on outgoing packet (0x%x)",
880 register at_socket socket;
904 * socket; when it gets here, the first block in the chain will be
924 * up to some socket on the same node.
973 socket = ddp->dst_socket;
976 * We want everything in router mode, specially socket 254 for nbp so we need
980 if (!MULTIPORT_MODE && (socket > DDP_SOCKET_LAST ||
981 socket < DDP_SOCKET_1st_RESERVED)) {
983 ("Bad dst socket on incoming packet (0x%x)",
1014 for packets of this type on a raw DDP socket *** */
1015 if (ddp_handler[socket].func) {
1018 (u_int) socket, ddp_handler[socket].func));
1022 (*ddp_handler[socket].func)(mp, ifID);
1042 if (atp_inputQ[socket] && (atp_inputQ[socket] != (gref_t *)1)) {
1048 if (adsp_inputQ[socket]) {
1059 if (gref->lport == socket &&
1062 ("ddp_input: streamq, skt %d\n", socket));
1101 ("ddp_input: dropped pkt for socket %d\n", socket));
1192 ("ddp_r_output: sending back home from port=%d socket=%d\n",