Searched defs:sock (Results 1 - 25 of 100) sorted by relevance

1234

/illumos-gate/usr/src/lib/libsocket/socket/
H A Dsockatmark.c39 _sockatmark(int sock) argument
43 if (ioctl(sock, SIOCATMARK, &val) == -1)
H A Dweaks.c82 _bind(int sock, struct sockaddr *addr, int addrlen) argument
84 return (_so_bind(sock, addr, addrlen, SOV_SOCKBSD));
88 _listen(int sock, int backlog) argument
90 return (_so_listen(sock, backlog, SOV_DEFAULT));
94 _accept(int sock, struct sockaddr *addr, int *addrlen) argument
96 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, 0));
100 _accept4(int sock, struct sockaddr *addr, int *addrlen, int flags) argument
102 return (_so_accept(sock, addr, addrlen, SOV_DEFAULT, flags));
106 _connect(int sock, struct sockaddr *addr, int addrlen) argument
108 return (_so_connect(sock, add
112 _shutdown(int sock, int how) argument
118 _recv(int sock, char *buf, int len, int flags) argument
124 _recvfrom(int sock, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen) argument
132 _recvmsg(int sock, struct msghdr *msg, int flags) argument
138 _send(int sock, char *buf, int len, int flags) argument
144 _sendmsg(int sock, struct msghdr *msg, int flags) argument
150 _sendto(int sock, char *buf, int len, int flags, struct sockaddr *addr, int *addrlen) argument
158 _getpeername(int sock, struct sockaddr *name, int *namelen) argument
164 _getsockname(int sock, struct sockaddr *name, int *namelen) argument
170 _getsockopt(int sock, int level, int optname, char *optval, int *optlen) argument
214 _setsockopt(int sock, int level, int optname, char *optval, int optlen) argument
221 __xnet_bind(int sock, const struct sockaddr *addr, socklen_t addrlen) argument
228 __xnet_listen(int sock, int backlog) argument
234 __xnet_connect(int sock, const struct sockaddr *addr, socklen_t addrlen) argument
240 __xnet_recvmsg(int sock, struct msghdr *msg, int flags) argument
246 __xnet_sendmsg(int sock, const struct msghdr *msg, int flags) argument
252 __xnet_sendto(int sock, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen) argument
260 __xnet_getsockopt(int sock, int level, int option_name, void *option_value, socklen_t *option_lenp) argument
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_settid.c45 struct sockaddr_in6 sock; local
47 int socklen = sizeof (sock);
60 /* get sock name */
61 if (getsockname(fd, (struct sockaddr *)&sock, (socklen_t *)&socklen)
67 rv = do_ipv6_address(&peer, &sock);
70 (struct sockaddr_in *)&sock);
76 do_ipv6_address(struct sockaddr_in6 *peer, struct sockaddr_in6 *sock) argument
96 ai.ai_termid.at_port = ((peer->sin6_port<<16) | (sock->sin6_port));
108 do_ipv4_address(struct sockaddr_in *peer, struct sockaddr_in *sock) argument
124 ai.ai_termid.port = (peer->sin_port<<16 | sock
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dinfo.c111 rdsv3_info_ioctl(struct rsock *sock, int optname, char *optval, argument
169 func(sock, ulen, &iter, &lens);
H A Dstats.c116 rdsv3_stats_info(struct rsock *sock, unsigned int len, argument
H A Dib.c315 rds_ib_ic_info(struct rsock *sock, unsigned int len, argument
320 sock, iter, lens, len);
322 rdsv3_for_each_conn_info(sock, len, iter, lens,
/illumos-gate/usr/src/lib/libsendfile/common/
H A Dsendfile.c45 _sendfilev(int sock, const struct sendfilevec *vec, int sfvcnt, size_t *xferred) argument
50 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, vec,
63 _sendfile(int sock, int fd, off_t *off, size_t len) argument
74 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV, sock, &sfv,
93 _sendfilev64(int sock, const struct sendfilevec64 *vec, int sfvcnt, argument
99 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, vec,
112 _sendfile64(int sock, int fd, off64_t *off, size_t len) argument
123 error = __systemcall(&rval, SYS_sendfilev, SENDFILEV64, sock, &sfv,
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_nbp.c104 uint8_t sock; local
117 sock = *p++;
138 "Net = %d, node = %d, sock = %d, enum = %d",
139 net, node, sock, enumer);
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dselfcheck.c117 int sock; local
123 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
131 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) {
143 (void) close(sock);
150 (void) close(sock);
160 if (ioctl(sock, SIOCGLIFCONF, (char *)lifc) < 0) {
162 (void) close(sock);
168 (void) close(sock);
176 int sock; local
179 sock
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c41 int syscall, int sock, struct sockaddr *name, socklen_t *namelen)
43 sysret_t rval; /* return value from get{sock|peer}name() */
44 argdes_t argd[4]; /* arg descriptors for get{sock|peer}name() */
48 adp = &argd[0]; /* sock argument */
49 adp->arg_value = sock;
95 int sock, struct sockaddr *name, socklen_t *namelen)
98 return (_so_getsockname(sock, name, namelen, SOV_DEFAULT));
100 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen));
108 int sock, struct sockaddr *name, socklen_t *namelen)
111 return (_so_getpeername(sock, nam
40 get_sock_peer_name(struct ps_prochandle *Pr, int syscall, int sock, struct sockaddr *name, socklen_t *namelen) argument
94 pr_getsockname(struct ps_prochandle *Pr, int sock, struct sockaddr *name, socklen_t *namelen) argument
107 pr_getpeername(struct ps_prochandle *Pr, int sock, struct sockaddr *name, socklen_t *namelen) argument
117 pr_getsockopt(struct ps_prochandle *Pr, int sock, int level, int optname, void *optval, int *optlen) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Deloop.h25 int sock; member in struct:eloop_sock
H A Deloop.c42 eloop_register_read_sock(int sock, argument
43 void (*handler)(int sock, void *eloop_ctx,
53 tmp[eloop.reader_count].sock = sock;
59 if (sock > eloop.max_sock)
60 eloop.max_sock = sock;
66 eloop_unregister_read_sock(int sock) argument
74 if (eloop.readers[i].sock == sock)
257 pfds[i].fd = eloop.readers[i].sock;
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_net.c61 ksocket_t sock; local
64 err = ksocket_socket(&sock, domain, type, protocol, KSOCKET_SLEEP,
70 return (sock);
184 rc = ksocket_sendmsg(s->sock, &msg, 0, &sent, CRED());
/illumos-gate/usr/src/lib/ncad_addr/common/
H A Dncad_addr.c196 nca_bind(int sock, const struct sockaddr *name, socklen_t namelen) argument
202 if (sock < 0) {
227 return (real_bind(sock, name, namelen));
243 (void) dup2(new_sock, sock);
251 return (real_bind(sock, (struct sockaddr *)&sin, namelen));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c197 int sock; member in struct:__anon2530
214 P.sock = -1;
221 P.sock = socket (P.af, USE_TYPE, USE_PROTO);
222 if (P.sock < 0) {
231 code = ioctl (P.sock, SIOCGLIFNUM, &P.lifnum);
247 code = get_lifconf (P.af, P.sock, &P.buf_size, P.buf);
262 if (ioctl (P.sock, SIOCGLIFFLAGS, (char *)&lifreq) < 0) {
312 if (P.sock != -1)
323 if (P.sock >= 0) {
341 closesocket(P.sock);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c388 int sock; local
396 sock = socket(AF_INET6, SOCK_DGRAM, 0);
397 if (sock == -1)
400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex,
408 if (setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, (char *)&hops,
415 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&hops,
422 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, (char *)&off,
431 if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
441 if (setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, (char *)&on,
448 if (setsockopt(sock, SOL_SOCKE
[all...]
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dsvc_tcp.c89 * xprt = svctcp_create(sock, send_buf_size, recv_buf_size);
96 * If sock<0 then a socket is created, else sock is used.
97 * If the socket, sock is not bound to a port then svctcp_create
108 svctcp_create(sock, sendsize, recvsize)
109 register int sock;
119 if (sock == RPC_ANYSOCK) {
120 if ((sock = _socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {
129 if (bindresvport(sock, &addr)) {
131 (void) _bind(sock, (struc
228 int sock; local
296 register int sock = xprt->xp_sock; local
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_nicmon.c182 smbd_nicmon_needscan(int sock) argument
192 nbytes = read(sock, msg, sizeof (msg));
H A Dsmbd_join.c192 int sock = -1; local
220 sock = socket(di->d_dci.dc_addr.a_family, SOCK_STREAM, 0);
221 if (sock < 0)
223 (void) setsockopt(sock, IPPROTO_TCP,
226 rc = connect(sock, &sa, salen);
230 (void) close(sock);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DPlatformCommon.c40 int sock = socket(AF_INET, SOCK_DGRAM, 0); local
42 if (sock == -1) return;
67 if ((connect(sock, &addr.s, inner_len)) < 0) {
74 if ((getsockname(sock, &addr.s, &len)) < 0)
81 close(sock);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Ddev_net.c47 * RPC/mountd - nfs_mount(sock, ip, path)
85 static int net_getparams(int sock);
250 net_getparams(int sock) argument
263 bootp(sock, BOOTP_NONE);
276 if (rarp_getipaddress(sock)) {
283 if (bp_whoami(sock)) {
298 if (bp_getfile(sock, "gateway", &gateip, buf) == 0) {
315 if (bp_getfile(sock, "root", &rootip, rootpath)) {
/illumos-gate/usr/src/lib/libsctp/common/
H A Dsctp.c66 sctp_bindx(int sock, void *addrs, int addrcnt, int flags) argument
90 return (setsockopt(sock, IPPROTO_SCTP, SCTP_ADD_ADDR, addrs,
93 return (setsockopt(sock, IPPROTO_SCTP, SCTP_REM_ADDR, addrs,
105 sctp_getpaddrs(int sock, sctp_assoc_t id, void **addrs) argument
123 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) {
141 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) {
166 sctp_getladdrs(int sock, sctp_assoc_t id, void **addrs) argument
184 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) {
202 if (ioctl(sock, SIOCSCTPGOPT, &opt) == -1) {
227 sctp_opt_info(int sock, sctp_assoc_ argument
248 sctp_peeloff(int sock, sctp_assoc_t id) argument
[all...]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DRequestHandler.java55 private Socket sock = null; // Socket for incoming stream request. field in class:RequestHandler
71 if (sock != null) sock.close();
77 sock = null;
107 sock = sock_in;
108 clientAddr = sock.getInetAddress();
109 port = sock.getPort();
188 if (sock != null || inStream != null) {
194 if (sock != null) {
198 sock
[all...]
/illumos-gate/usr/src/lib/librdc/common/
H A Dnetaddrs.c66 int sock; local
69 sock = socket(AF_INET6, SOCK_DGRAM, 0);
70 if (sock < 0)
75 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) {
76 close(sock);
79 close(sock);
94 int sock; local
107 if ((sock = socket(family, SOCK_DGRAM, 0)) < 0) {
114 if (ioctl(sock, SIOCGIFNUM, (char *)&numifs) < 0) {
126 (void) close(sock);
[all...]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_resolv.c79 int sock; local
151 sock = RPC_ANYSOCK;
155 tv, &sock, YPMSGSZ, YPMSGSZ);
158 &sock, YPMSGSZ, YPMSGSZ);

Completed in 97 milliseconds

1234