Searched refs:sock_id (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/stand/lib/sock/ |
H A D | socket.c | 408 int sock_id; in shutdown() local 412 if ((sock_id = so_check_fd(s, &errno)) == -1) in shutdown() 416 if (sockets[sock_id].type != INETBOOT_STREAM) { in shutdown() 421 if (!(sockets[sock_id].so_state & SS_ISCONNECTED)) { in shutdown() 428 sockets[sock_id].so_state |= SS_CANTRCVMORE; in shutdown() 431 sockets[sock_id].so_state |= SS_CANTSENDMORE; in shutdown() 434 sockets[sock_id].so_state |= (SS_CANTRCVMORE | SS_CANTSENDMORE); in shutdown() 441 switch (sockets[sock_id].so_state & in shutdown() 446 if (sockets[sock_id].close[i] != NULL) { in shutdown() 447 (void) sockets[sock_id].close[i](sock_id); in shutdown() [all …]
|
/illumos-gate/usr/src/stand/lib/tcp/ |
H A D | tcp.c | 311 static void tcp_rcv_drain(int sock_id, tcp_t *); 324 uint32_t, int, tcph_t *, int sock_id); 467 tcp_drain_input(tcp_t *tcp, int sock_id, int timeout) in tcp_drain_input() argument 475 dprintf("tcp_drain_input(%d): %s\n", sock_id, in tcp_drain_input() 483 old_timeout = sockets[sock_id].in_timeout; in tcp_drain_input() 484 sockets[sock_id].in_timeout = timeout; in tcp_drain_input() 490 old_in_gram = sockets[sock_id].inq; in tcp_drain_input() 491 sockets[sock_id].inq = NULL; in tcp_drain_input() 495 if (sockets[sock_id].input[i] != NULL) { in tcp_drain_input() 496 if (sockets[sock_id].input[i](sock_id) < 0) { in tcp_drain_input() [all …]
|
/illumos-gate/usr/src/stand/lib/tcpstubs/ |
H A D | tcpstubs.c | 100 tcp_rcv_drain_sock(int sock_id) in tcp_rcv_drain_sock() argument
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 1066 ipv4_tcp_output(int sock_id, mblk_t *pkt) in ipv4_tcp_output() argument 1080 if (sockets[sock_id].out_flags & SO_DONTROUTE) in ipv4_tcp_output() 1092 sock_id, inet_ntoa(iph->ip_dst)); in ipv4_tcp_output() 1111 return (mac_state.mac_output(sock_id, &datagram)); in ipv4_tcp_output()
|