Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 11 of 11) sorted by relevance

/illumos-kvm-cmd/
H A Dosdep.c153 int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen) in qemu_accept() argument
158 ret = accept4(s, addr, addrlen, SOCK_CLOEXEC); in qemu_accept()
163 ret = accept(s, addr, addrlen); in qemu_accept()
H A Dmigration-unix.c149 socklen_t addrlen = sizeof(addr); in unix_accept_incoming_migration() local
155 c = qemu_accept(s, (struct sockaddr *)&addr, &addrlen); in unix_accept_incoming_migration()
H A Dmigration-tcp.c141 socklen_t addrlen = sizeof(addr); in tcp_accept_incoming_migration() local
147 c = qemu_accept(s, (struct sockaddr *)&addr, &addrlen); in tcp_accept_incoming_migration()
H A Dqemu_socket.h37 int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen);
/illumos-kvm-cmd/hw/
H A Dnand.c62 int addrlen; member
206 s->addrlen = 0; in nand_reset()
298 qemu_put_be32(f, s->addrlen); in nand_save()
320 s->addrlen = qemu_get_be32(f); in nand_load()
359 s->addrlen = 0; in nand_setio()
386 s->addrlen = 0; in nand_setio()
391 unsigned int shift = s->addrlen * 8; in nand_setio()
396 s->addrlen ++; in nand_setio()
398 if (s->addrlen == 1 && s->cmd == NAND_CMD_READID) in nand_setio()
402 s->addrlen == 3 && ( in nand_setio()
[all …]
/illumos-kvm-cmd/slirp/
H A Dmisc.c114 socklen_t addrlen = sizeof(addr); in fork_exec() local
136 bind(s, (struct sockaddr *)&addr, addrlen) < 0 || in fork_exec()
162 getsockname(s, (struct sockaddr *)&addr, &addrlen); in fork_exec()
171 ret = connect(s, (struct sockaddr *)&addr, addrlen); in fork_exec()
221 so->s = accept(s, (struct sockaddr *)&addr, &addrlen); in fork_exec()
H A Dsocket.c438 socklen_t addrlen = sizeof(struct sockaddr_in); in sorecvfrom() local
448 (struct sockaddr *)&addr, &addrlen); in sorecvfrom()
497 (struct sockaddr *)&addr, &addrlen); in sorecvfrom()
589 socklen_t addrlen = sizeof(addr); in tcp_listen() local
590 memset(&addr, 0, addrlen); in tcp_listen()
644 getsockname(s,(struct sockaddr *)&addr,&addrlen); in tcp_listen()
H A Dudp.c347 socklen_t addrlen = sizeof(struct sockaddr_in), opt = 1; in udp_listen() local
361 if (bind(so->s,(struct sockaddr *)&addr, addrlen) < 0) { in udp_listen()
367 getsockname(so->s,(struct sockaddr *)&addr,&addrlen); in udp_listen()
H A Dtcp_subr.c386 socklen_t addrlen = sizeof(struct sockaddr_in); in tcp_connect() local
403 closesocket(accept(inso->s,(struct sockaddr *)&addr,&addrlen)); in tcp_connect()
416 if ((s = accept(inso->s,(struct sockaddr *)&addr,&addrlen)) < 0) { in tcp_connect()
570 socklen_t addrlen = sizeof(struct sockaddr_in); in tcp_emu() local
590 (struct sockaddr *)&addr, &addrlen) == 0) in tcp_emu()
/illumos-kvm-cmd/linux-user/
H A Dsyscall.c1608 if ((int)addrlen < 0) { in do_bind()
1628 if ((int)addrlen < 0) { in do_connect()
1632 addr = alloca(addrlen); in do_connect()
1704 socklen_t addrlen; in do_accept() local
1715 if ((int)addrlen < 0) { in do_accept()
1722 addr = alloca(addrlen); in do_accept()
1737 socklen_t addrlen; in do_getpeername() local
1744 if ((int)addrlen < 0) { in do_getpeername()
1751 addr = alloca(addrlen); in do_getpeername()
1766 socklen_t addrlen; in do_getsockname() local
[all …]
/illumos-kvm-cmd/ui/
H A Dvnc.c61 size_t addrlen; in addr_to_string() local
74 addrlen = strlen(format) + strlen(host) + strlen(serv); in addr_to_string()
75 addr = qemu_malloc(addrlen + 1); in addr_to_string()
76 snprintf(addr, addrlen, format, host, serv); in addr_to_string()
77 addr[addrlen] = '\0'; in addr_to_string()
2420 socklen_t addrlen = sizeof(addr); in vnc_listen_read() local
2425 int csock = qemu_accept(vs->lsock, (struct sockaddr *)&addr, &addrlen); in vnc_listen_read()