Searched defs:socket (Results 1 - 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dsocket.c30 #include <sys/socket.h>
36 socket(family, type, protocol) function
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c30 #include <sys/socket.h>
41 * Interpose socket(3SOCKET), so that we can set the connect timeout.
42 * Obviously, this will affect every socket in the application. However,
47 socket(int domain, int type, int protocol) { function
54 fptr = (int (*)())dlsym(RTLD_NEXT, "socket");
57 "socket: load error: %s",
/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsocket.c39 #include <sys/socket.h>
53 #pragma weak socket = _socket macro
83 * Create a socket endpoint for socket() and socketpair().
143 * but socket() should fail with
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_radiusauth.c70 void *socket; local
109 socket = idm_socreate(PF_INET, SOCK_DGRAM, 0);
110 if (socket == NULL) {
111 /* Error obtaining socket for RADIUS use */
116 if (iscsit_snd_radius_request(socket,
120 idm_soshutdown(socket);
121 idm_sodestroy(socket);
126 /* Analyze the response coming through from the same socket. */
127 rcv_status = iscsit_rcv_radius_response(socket,
146 /* Done! Close the socket
[all...]
H A Discsit_radiuspacket.c40 static size_t iscsit_net_recvmsg(ksocket_t socket, struct msghdr *msg,
47 iscsit_snd_radius_request(ksocket_t socket, iscsi_ipaddr_t rsvr_ip_addr, argument
140 err = idm_sosendto(socket, data, data_len,
152 err = idm_sosendto(socket, data, data_len,
168 iscsit_rcv_radius_response(ksocket_t socket, uint8_t *shared_secret, argument
195 received_len = iscsit_net_recvmsg(socket, &msg, RAD_RCV_TIMEOUT);
306 * iscsi_net_recvmsg - receive message on socket
310 iscsit_net_recvmsg(ksocket_t socket, struct msghdr *msg, int timeout) argument
325 (void) ksocket_getsockname(socket, (struct sockaddr *)(&l_addr),
327 (void) ksocket_getpeername(socket, (struc
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dradius_auth.c29 #include <sys/socket.h>
74 void *socket; local
114 socket = iscsi_net->socket(AF_INET, SOCK_DGRAM, 0);
115 if (socket == NULL) {
116 /* Error obtaining socket for RADIUS use */
121 if (snd_radius_request(socket,
129 /* Analyze the response coming through from the same socket. */
130 rcv_status = rcv_radius_response(socket,
150 iscsi_net->close(socket);
[all...]
H A Dradius_packet.c31 #include <sys/socket.h>
42 snd_radius_request(void *socket, iscsi_ipaddr_t rsvr_ip_addr, argument
146 recv_len = iscsi_net->sendmsg(socket, &msg);
163 rcv_radius_response(void *socket, uint8_t *shared_secret, argument
191 rcv_len = iscsi_net->recvmsg(socket, &msg, RAD_RCV_TIMEOUT);
H A Discsi_net.c28 #include <sys/socket.h> /* networking stuff */
64 * socket - Creates TCP/IP socket connection. In the
84 * getsockopt - Gets socket option for specified socket.
85 * setsockopt - Sets socket option for specified socket.
87 * The current socket options that are used by the initiator
97 * iscsi_net_poll - Poll socket interface for a specified amount
100 * iscsi_net_sendmsg - Send message on socket connectio
236 iscsi_net_set_connect_options(void *socket) argument
272 ksocket_t socket; local
289 iscsi_net_bind(void *socket, struct sockaddr *name, int name_len, int backlog, int flags) argument
306 iscsi_net_connect(void *socket, struct sockaddr *name, int name_len, int fflag, int flags) argument
322 iscsi_net_listen(void *socket, int backlog) argument
332 iscsi_net_accept(void *socket, struct sockaddr *addr, int *addr_len) argument
347 iscsi_net_getsockname(void *socket, struct sockaddr *addr, socklen_t *addrlen) argument
358 iscsi_net_getsockopt(void *socket, int level, int option_name, void *option_val, int *option_len, int flags) argument
370 iscsi_net_setsockopt(void *socket, int level, int option_name, void *option_val, int option_len) argument
382 iscsi_net_shutdown(void *socket, int how) argument
392 iscsi_net_close(void *socket) argument
403 iscsi_net_poll(void *socket, clock_t timeout) argument
441 iscsi_net_sendmsg(void *socket, struct msghdr *msg) argument
456 iscsi_net_recvmsg(void *socket, struct msghdr *msg, int timeout) argument
496 iscsi_net_sendpdu(void *socket, iscsi_hdr_t *ihp, char *data, int flags) argument
606 iscsi_net_recvhdr(void *socket, iscsi_hdr_t *ihp, int header_length, int timeout, int flags) argument
735 iscsi_net_recvdata(void *socket, iscsi_hdr_t *ihp, char *data, int max_data_length, int timeout, int flags) argument
[all...]
H A Disns_client.c83 * One thread, port, local address, and listening socket per LHBA instance.
149 static ssize_t isns_send_pdu(void *socket, isns_pdu_t *pdu);
1513 /* Create socket */
1514 so = iscsi_net->socket(AF_INET, SOCK_STREAM, 0);
1522 /* Create socket */
1523 so = iscsi_net->socket(AF_INET6, SOCK_STREAM, 0);
1549 isns_send_pdu(void *socket, isns_pdu_t *pdu) argument
1575 send_len = iscsi_net->sendmsg(socket, &msg);
1581 isns_rcv_pdu(void *socket, isns_pdu_t **pdu, size_t *pdu_size) argument
1605 bytes_received = iscsi_net->recvmsg(socket,
[all...]
/illumos-gate/usr/src/cmd/lms/
H A DChannel.h54 Channel(PortForwardRequest *portForwardRequest, SOCKET socket) : argument
56 _senderChannel((unsigned int)socket),
57 _socket(socket),
H A DProtocol.cpp36 #include <sys/socket.h>
275 bool Protocol::_checkListen(std::string address, in_port_t port, int &socket) argument
282 socket = it->second[0]->GetListeningSocket();
313 int socket = INVALID_SOCKET; local
314 bool exists = _checkListen("127.0.0.1", port, socket);
518 SOCKET socket = it->second->GetSocket(); local
519 FD_SET(socket, &rset);
520 if ((int)socket > fdCount) {
521 fdCount = (int)socket;
523 if ((fdMin == -1) || ((int)socket < fdMi
[all...]
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dsocketvar.h15 * Kernel structure per socket.
20 struct socket { struct
21 short so_type; /* generic type, see socket.h */
22 short so_options; /* from socket call, see socket.h */
30 * If so_head is 0, socket is not related to an accept.
31 * For head socket so_q0 queues partially completed connections,
36 * and limit on number of queued connections for this socket.
38 struct socket *so_head; /* back pointer to accept socket */
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c53 #include <sys/socket.h>
302 synchnet(int socket) argument
307 pfd.fd = socket;
322 if (recvfrom(socket, &buf, sizeof (buf), 0,
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_amd.c134 * below each, regardless of actual socket type, processor revision and so on.
642 char *socket; local
650 * the socket 754 package has a single channel.
652 if (topo_prop_get_string(pnode, PGNAME(MCT), "socket",
653 &socket, &err) == 0 && strcmp(socket, "Socket 754") == 0)
658 topo_mod_strfree(mod, socket);
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c25 * socket.c, Code implementing a simple socket interface.
35 #include <sys/socket.h>
52 /* Default send and receive socket buffer size */
56 /* Default max socket buffer size */
65 /* Check the validity of a fd and return the socket index of that fd. */
92 socket(int domain, int type, int protocol) function
109 /* Find available socket */
119 /* Some socket initialization... */
176 * The socket option
[all...]
/illumos-gate/usr/src/cmd/rpcinfo/
H A Drpcinfo.c72 #include <sys/socket.h>
490 int socket = RPC_ANYSOCK; local
513 PMAPVERS, &socket, 50, 500)) == NULL) {
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dmem_addr.c531 * different socket/channel interleave
611 * socket/channel interleave changes in the
866 set_rank(int socket, int channel, int rule, int way, int rank, argument
878 if (rir[socket][channel][k].way[l].dimm_rank == rank &&
879 rir[socket][channel][k].way[l].rlimit == 0) {
880 rir[socket][channel][k].way[l].rlimit =
890 if (rir[socket][channel][k].way[l].dimm_rank == rank &&
891 rir[socket][channel][k].way[l].rlimit == 0) {
892 rir[socket][channel][k].way[l].rlimit = rank_addr;
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus.c575 cardbus_load_cardbus(dev_info_t *dip, uint_t socket, uint32_t pc_base) argument
585 _NOTE(ARGUNUSED(socket, pc_base))
988 "cardbus_ctlops: PCCard socket %d at %s@%s\n",
2278 uint_t socket = 0; /* We only support devices */ local
2279 /* with one socket per function */
2295 sih.socket = socket;
2314 uint_t socket = 0; /* We only support devices with 1 socket per */ local
2331 cih.socket
[all...]
/illumos-gate/usr/src/uts/common/pcmcia/cs/
H A Dcs.c36 * PCMCIA nexus driver to manipulate socket and adapter
133 * SS<->CS communication and internal socket and window handling functions
282 * Setup the client type structure - this is used in the socket event
284 * the socket.
309 * global socket and window structure arrays.
339 * Go through each socket and make sure that there are no clients
341 * all the clients for every socket are gone.
348 "socket %d has registered clients\n", sn);
394 * Go through each socket and free any resource allocated to that
395 * socket, a
8327 cs_get_socket(client_handle_t client_handle, uint32_t *socket, uint32_t *function, cs_socket_t **csp, client_t **clp) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dsocket.h65 * functions. Exposing all of sys/socket.h via netinet/in.h breaks existing
98 #define SOCK_STREAM NC_TPI_COTS /* stream socket */
99 #define SOCK_DGRAM NC_TPI_CLTS /* datagram socket */
102 #define SOCK_STREAM 2 /* stream socket */
103 #define SOCK_DGRAM 1 /* datagram socket */
111 * Flags for socket() and accept4()
113 #define SOCK_CLOEXEC 0x080000 /* like open(2) O_CLOEXEC for socket */
118 * Option flags per-socket.
121 #define SO_ACCEPTCONN 0x0002 /* socket has had listen() */
175 #define SO_TYPE 0x1008 /* get socket typ
511 #define socket macro
[all...]
H A Dpcmcia.h60 #define PCMCIA_SOCKET_NODE "ddi_pcmcia:socket"
134 unsigned socket; member in struct:inthandler
155 short ppd_socket; /* socket number of this instance */
157 int ppd_active; /* is PC Card in a socket and active */
188 #define RESET_SOCKET(f, dip, socket, mode) \
189 (*(f)->pcif_reset_socket)(dip, socket, mode)
192 #define SET_SOCKET(f, dip, socket) (*(f)->pcif_set_socket)(dip, socket)
247 #define PCS_CARD_PRESENT 0x0001 /* card in socket */
249 #define PCS_SOCKET_ADDED 0x0004 /* CS knows about the socket */
356 int socket; member in struct:init_dev
[all...]
H A Dsservice.h127 #define PCE_ADD_SOCKET 25 /* add a new socket */
128 #define PCE_DROP_SOCKET 26 /* drop an existing socket */
136 #define CS_EVENT(event, socket, arg) (*pcmcia_cs_event) (event, socket, arg)
138 /* values for "socket number" field for PCE_SS_INIT_STATE event */
192 unsigned socket; /* socket number */ member in struct:get_socket
206 unsigned socket; /* socket number */ member in struct:get_ss_status
238 unsigned socket; /* socke member in struct:get_window
301 unsigned socket; /* socket number */ member in struct:inquire_socket
409 unsigned socket; /* socket number */ member in struct:set_socket
427 unsigned socket; /* associate with a socket for now */ member in struct:set_irq_handler
446 unsigned socket; member in struct:clear_irq_handler
455 unsigned socket; /* socket number */ member in struct:set_window
499 unsigned socket; /* socket number */ member in struct:get_cookies_and_dip_t
531 int socket; member in struct:pcm_make_dev
[all...]
/illumos-gate/usr/src/man/man3head/
H A DMakefile75 socket.h.3head \
164 socket.3head \
253 socket.3head := LINKSRC = socket.h.3head
/illumos-gate/usr/src/uts/common/io/
H A Dpcic.c349 static void pcic_enable_io_intr(pcicdev_t *pcic, int socket, int irq);
350 static void pcic_disable_io_intr(pcicdev_t *pcic, int socket);
357 static int pcic_exca_powerctl(pcicdev_t *pcic, int socket, int powerlevel);
358 static int pcic_cbus_powerctl(pcicdev_t *pcic, int socket);
637 /* poweroff socket */
651 * structure which contains both the dip and socket services entry
1072 /* set flags and socket counts based on chip type */
1179 * basically check each possible socket for
1188 * if a zero is read back, then this socket
1249 * wired things wrong, socket
2450 pcic_change(pcicdev_t *pcic, int socket) argument
2680 pcic_set_cdtimers(pcicdev_t *pcic, int socket, uint32_t speed, int tset) argument
2736 int socket, pages, which, ret; local
3559 int which, socket, window; local
3691 pcic_set_vcc_level(pcicdev_t *pcic, set_socket_t *socket) argument
3785 pcic_set_socket(dev_info_t *dip, set_socket_t *socket) argument
4200 pcic_inquire_socket(dev_info_t *dip, inquire_socket_t *socket) argument
4227 int type, socket; local
4311 int socket, window; local
4347 pcic_get_socket(dev_info_t *dip, get_socket_t *socket) argument
4463 int socket, win; local
4524 pcic_ll_reset(pcicdev_t *pcic, int socket) argument
4637 pcic_reset_socket(dev_info_t *dip, int socket, int mode) argument
5028 xxdmp_cl_regs(pcicdev_t *pcic, int socket, uint32_t len) argument
5104 xxdmp_all_regs(pcicdev_t *pcic, int socket, uint32_t len) argument
5160 pcic_mswait(pcicdev_t *pcic, int socket, int ms) argument
5178 pcic_check_ready(pcicdev_t *pcic, int socket) argument
5390 pcic_82092_smiirq_ctl(pcicdev_t *pcic, int socket, int intr, int state) argument
5696 pcic_getb(pcicdev_t *pcic, int socket, int reg) argument
5722 pcic_putb(pcicdev_t *pcic, int socket, int reg, int8_t value) argument
6210 pcic_enable_io_intr(pcicdev_t *pcic, int socket, int irq) argument
6258 pcic_disable_io_intr(pcicdev_t *pcic, int socket) argument
6579 pcic_exca_powerctl(pcicdev_t *pcic, int socket, int powerlevel) argument
6698 pcic_cbus_powerctl(pcicdev_t *pcic, int socket) argument
[all...]
/illumos-gate/usr/src/uts/common/pcmcia/nexus/
H A Dpcmcia.c30 * the logical socket name space while allowing multiple
87 int ls_socket; /* adapter's socket number */
425 * returning. We do this by checking each socket to see if
445 status.socket = i;
537 cmn_err(CE_CONT, "?PCCard socket %d at %s@%s\n",
541 cmn_err(CE_CONT, "?%s%d at %s@%s in socket %d\n",
604 cmn_err(CE_CONT, "\tnreg=%x, intr=%x, socket=%x,"
613 * make sure names are relative to socket number
1167 /* indicate first socket not initialized */
1195 /* now setup the per socket inf
1391 pcm_phys_to_log_socket(struct pcmcia_adapter *adapt, int socket) argument
1444 pcm_adapter_callback(dev_info_t *dip, int adapter, int event, int socket) argument
1530 pcm_event_manager(int event, int socket, void *arg) argument
1558 pcm_search_devinfo(dev_info_t *self, struct pcm_device_info *info, int socket) argument
1653 pcm_find_devinfo(dev_info_t *pdip, struct pcm_device_info *info, int socket) argument
1691 pcm_find_parent_dip(int socket) argument
1852 int socket, func; local
2107 pcmcia_do_suspend(int socket, pcmcia_logical_socket_t *sockp) argument
2173 pcmcia_do_resume(int socket, pcmcia_logical_socket_t *sockp) argument
2340 pcmcia_1275_name(int socket, struct pcm_device_info *info, client_handle_t handle) argument
2381 pcmcia_vers1_name(int socket, struct pcm_device_info *info, client_handle_t handle) argument
2455 pcmcia_generic_name(int socket, struct pcm_device_info *info, client_handle_t handle) argument
2914 pcmcia_need_intr(int socket, struct pcm_device_info *info) argument
2976 pcmcia_num_funcs(int socket, client_handle_t handle) argument
3005 pcmcia_create_dev_info(int socket) argument
3360 pcmcia_get_devinfo(int socket) argument
3377 pcmcia_logical_socket_t *socket; local
3463 SSGetSocket(get_socket_t *socket) argument
3573 SSInquireSocket(inquire_socket_t *socket) argument
3645 SSResetSocket(int socket, int mode) argument
3692 int socket, window, retval, func; local
3726 SSSetSocket(set_socket_t *socket) argument
3997 int socket; local
4253 pcmcia_cb_suspended(int socket) argument
4265 pcmcia_cb_resumed(int socket) argument
4720 int socket, ret; local
4877 int socket; local
5052 int socket; local
5081 int socket; local
5205 int socket, ret; local
5397 int socket, ret; local
[all...]

Completed in 95 milliseconds

12