Lines Matching refs:addrbuf

2472     sock_addr_t *addrbuf;  member
2485 struct sockaddr *addr = SAS2SA(ctx->addrbuf); in sock_accept_impl()
2524 sock_addr_t addrbuf; in sock_accept() local
2534 memset(&addrbuf, 0, addrlen); in sock_accept()
2540 ctx.addrbuf = &addrbuf; in sock_accept()
2570 addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_accept()
2921 sock_addr_t addrbuf; in sock_bind() local
2925 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen)) in sock_bind()
2928 res = bind(s->sock_fd, SAS2SA(&addrbuf), addrlen); in sock_bind()
3085 sock_addr_t addrbuf; in sock_connect() local
3089 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen)) in sock_connect()
3092 res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 1); in sock_connect()
3111 sock_addr_t addrbuf; in sock_connect_ex() local
3115 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen)) in sock_connect_ex()
3118 res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 0); in sock_connect_ex()
3151 sock_addr_t addrbuf; in sock_getsockname() local
3157 memset(&addrbuf, 0, addrlen); in sock_getsockname()
3159 res = getsockname(s->sock_fd, SAS2SA(&addrbuf), &addrlen); in sock_getsockname()
3163 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_getsockname()
3180 sock_addr_t addrbuf; in sock_getpeername() local
3186 memset(&addrbuf, 0, addrlen); in sock_getpeername()
3188 res = getpeername(s->sock_fd, SAS2SA(&addrbuf), &addrlen); in sock_getpeername()
3192 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_getpeername()
3409 sock_addr_t *addrbuf; member
3418 memset(ctx->addrbuf, 0, *ctx->addrlen); in sock_recvfrom_impl()
3424 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_recvfrom_impl()
3427 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_recvfrom_impl()
3448 sock_addr_t addrbuf; in sock_recvfrom_guts() local
3465 ctx.addrbuf = &addrbuf; in sock_recvfrom_guts()
3470 *addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_recvfrom_guts()
3619 sock_addr_t addrbuf; in sock_recvmsg_guts() local
3637 memset(&addrbuf, 0, addrbuflen); in sock_recvmsg_guts()
3638 SAS2SA(&addrbuf)->sa_family = AF_UNSPEC; in sock_recvmsg_guts()
3654 msg.msg_name = SAS2SA(&addrbuf); in sock_recvmsg_guts()
3709 makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_recvmsg_guts()
4056 sock_addr_t *addrbuf; member
4069 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_sendto_impl()
4072 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_sendto_impl()
4085 sock_addr_t addrbuf; in sock_sendto() local
4115 if (!getsockaddrarg(s, addro, SAS2SA(&addrbuf), &addrlen)) { in sock_sendto()
4124 ctx.addrbuf = &addrbuf; in sock_sendto()
4223 sock_addr_t addrbuf; local
4246 if (!getsockaddrarg(s, addr_arg, SAS2SA(&addrbuf), &addrlen))
4248 msg.msg_name = &addrbuf;
4936 sock_addr_t addrbuf; local
4939 memset(&addrbuf, 0, addrlen);
4940 if (getsockname(fd, SAS2SA(&addrbuf), &addrlen) == 0) {
4941 family = SAS2SA(&addrbuf)->sa_family;
5242 struct sockaddr_in addrbuf; local
5247 if (setipaddr(name, (struct sockaddr *)&addrbuf, sizeof(addrbuf), AF_INET) < 0)
5249 ret = make_ipv4_addr(&addrbuf);