Lines Matching refs:addrbuf
1650 sock_addr_t *addrbuf, int *len_ret, const char *caller) in getsockaddrarg() argument
1674 struct sockaddr_un* addr = &addrbuf->un; in getsockaddrarg()
1710 struct sockaddr_nl* addr = &addrbuf->nl; in getsockaddrarg()
1737 struct sockaddr_qrtr* addr = &addrbuf->sq; in getsockaddrarg()
1759 struct sockaddr_vm* addr = &addrbuf->vm; in getsockaddrarg()
1809 struct sockaddr_in* addr = &addrbuf->in; in getsockaddrarg()
1854 struct sockaddr_in6* addr = &addrbuf->in6; in getsockaddrarg()
1890 struct sockaddr_l2 *addr = &addrbuf->bt_l2; in getsockaddrarg()
1909 struct sockaddr_rc *addr = &addrbuf->bt_rc; in getsockaddrarg()
1926 struct sockaddr_hci *addr = &addrbuf->bt_hci; in getsockaddrarg()
1954 struct sockaddr_sco *addr = &addrbuf->bt_sco; in getsockaddrarg()
2031 struct sockaddr_ll* addr = &addrbuf->ll; in getsockaddrarg()
2071 struct sockaddr_tipc *addr = &addrbuf->tipc; in getsockaddrarg()
2115 struct sockaddr_can *addr = &addrbuf->can; in getsockaddrarg()
2167 struct sockaddr_can *addr = &addrbuf->can; in getsockaddrarg()
2214 struct sockaddr_can *addr = &addrbuf->can; in getsockaddrarg()
2266 struct sockaddr_ctl *addr = &addrbuf->ctl; in getsockaddrarg()
2320 struct sockaddr_alg *sa = &addrbuf->alg; in getsockaddrarg()
2651 sock_addr_t *addrbuf; member
2664 struct sockaddr *addr = SAS2SA(ctx->addrbuf); in sock_accept_impl()
2703 sock_addr_t addrbuf; in sock_accept() local
2713 memset(&addrbuf, 0, addrlen); in sock_accept()
2719 ctx.addrbuf = &addrbuf; in sock_accept()
2749 addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_accept()
3100 sock_addr_t addrbuf; in sock_bind() local
3104 if (!getsockaddrarg(s, addro, &addrbuf, &addrlen, "bind")) { in sock_bind()
3113 res = bind(s->sock_fd, SAS2SA(&addrbuf), addrlen); in sock_bind()
3270 sock_addr_t addrbuf; in sock_connect() local
3274 if (!getsockaddrarg(s, addro, &addrbuf, &addrlen, "connect")) { in sock_connect()
3282 res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 1); in sock_connect()
3301 sock_addr_t addrbuf; in sock_connect_ex() local
3305 if (!getsockaddrarg(s, addro, &addrbuf, &addrlen, "connect_ex")) { in sock_connect_ex()
3313 res = internal_connect(s, SAS2SA(&addrbuf), addrlen, 0); in sock_connect_ex()
3346 sock_addr_t addrbuf; in sock_getsockname() local
3352 memset(&addrbuf, 0, addrlen); in sock_getsockname()
3354 res = getsockname(s->sock_fd, SAS2SA(&addrbuf), &addrlen); in sock_getsockname()
3358 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_getsockname()
3376 sock_addr_t addrbuf; in sock_getpeername() local
3382 memset(&addrbuf, 0, addrlen); in sock_getpeername()
3384 res = getpeername(s->sock_fd, SAS2SA(&addrbuf), &addrlen); in sock_getpeername()
3388 return makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_getpeername()
3605 sock_addr_t *addrbuf; member
3614 memset(ctx->addrbuf, 0, *ctx->addrlen); in sock_recvfrom_impl()
3620 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_recvfrom_impl()
3623 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_recvfrom_impl()
3644 sock_addr_t addrbuf; in sock_recvfrom_guts() local
3661 ctx.addrbuf = &addrbuf; in sock_recvfrom_guts()
3666 *addr = makesockaddr(s->sock_fd, SAS2SA(&addrbuf), addrlen, in sock_recvfrom_guts()
3815 sock_addr_t addrbuf; in sock_recvmsg_guts() local
3833 memset(&addrbuf, 0, addrbuflen); in sock_recvmsg_guts()
3834 SAS2SA(&addrbuf)->sa_family = AF_UNSPEC; in sock_recvmsg_guts()
3850 msg.msg_name = SAS2SA(&addrbuf); in sock_recvmsg_guts()
3905 makesockaddr(s->sock_fd, SAS2SA(&addrbuf), in sock_recvmsg_guts()
4252 sock_addr_t *addrbuf; member
4265 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_sendto_impl()
4268 SAS2SA(ctx->addrbuf), ctx->addrlen); in sock_sendto_impl()
4281 sock_addr_t addrbuf; in sock_sendto() local
4311 if (!getsockaddrarg(s, addro, &addrbuf, &addrlen, "sendto")) { in sock_sendto()
4324 ctx.addrbuf = &addrbuf; in sock_sendto()
4423 sock_addr_t addrbuf; local
4446 if (!getsockaddrarg(s, addr_arg, &addrbuf, &addrlen,
4454 msg.msg_name = &addrbuf;
5167 sock_addr_t addrbuf; local
5170 memset(&addrbuf, 0, addrlen);
5171 if (getsockname(fd, SAS2SA(&addrbuf), &addrlen) == 0) {
5173 family = SAS2SA(&addrbuf)->sa_family;
5480 struct sockaddr_in addrbuf; local
5488 if (setipaddr(name, (struct sockaddr *)&addrbuf, sizeof(addrbuf), AF_INET) < 0)
5490 ret = make_ipv4_addr(&addrbuf);