Lines Matching refs:addr

343                             struct Curl_sockaddr_ex *addr,  in socket_open()  argument
361 (struct curl_sockaddr *)addr); in socket_open()
366 *sockfd = socket(addr->family, addr->socktype, addr->protocol); in socket_open()
374 if(data->conn->scope_id && (addr->family == AF_INET6)) { in socket_open()
375 struct sockaddr_in6 * const sa6 = (void *)&addr->curl_sa_addr; in socket_open()
393 struct Curl_sockaddr_ex *addr, in Curl_socket_open() argument
399 if(!addr) in Curl_socket_open()
401 addr = &dummy; in Curl_socket_open()
403 Curl_sock_assign_addr(addr, ai, transport); in Curl_socket_open()
404 return socket_open(data, addr, sockfd); in Curl_socket_open()
696 int h_af = h->addr->ai_family; in bindlocal()
698 Curl_printable_address(h->addr, myhost, sizeof(myhost)); in bindlocal()
938 struct Curl_sockaddr_ex addr; /* address to connect to */ member
969 Curl_sock_assign_addr(&ctx->addr, ai, transport); in cf_socket_ctx_init()
1094 if(!Curl_addr2string(&ctx->addr.curl_sa_addr, in set_remote_ip()
1095 (curl_socklen_t)ctx->addr.addrlen, in set_remote_ip()
1126 ctx->addr.socktype |= SOCK_NONBLOCK; in cf_socket_open()
1128 result = socket_open(data, &ctx->addr, &ctx->sock); in cf_socket_open()
1132 ctx->addr.socktype &= ~SOCK_NONBLOCK; in cf_socket_open()
1142 if(ctx->addr.family == AF_INET6) { in cf_socket_open()
1151 is_tcp = (ctx->addr.family == AF_INET in cf_socket_open()
1152 || ctx->addr.family == AF_INET6) && in cf_socket_open()
1153 ctx->addr.socktype == SOCK_STREAM; in cf_socket_open()
1155 is_tcp = (ctx->addr.family == AF_INET) && in cf_socket_open()
1156 ctx->addr.socktype == SOCK_STREAM; in cf_socket_open()
1186 if(ctx->addr.family == AF_INET in cf_socket_open()
1188 || ctx->addr.family == AF_INET6 in cf_socket_open()
1191 result = bindlocal(data, cf->conn, ctx->sock, ctx->addr.family, in cf_socket_open()
1192 Curl_ipv6_scope(&ctx->addr.curl_sa_addr)); in cf_socket_open()
1225 ctx->sock_connected = (ctx->addr.socktype != SOCK_DGRAM); in cf_socket_open()
1264 endpoints.sae_dstaddr = &ctx->addr.curl_sa_addr; in do_connect()
1265 endpoints.sae_dstaddrlen = ctx->addr.addrlen; in do_connect()
1272 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect()
1275 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect()
1283 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect()
1286 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, ctx->addr.addrlen); in do_connect()
1292 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, in do_connect()
1293 (curl_socklen_t)ctx->addr.addrlen); in do_connect()
1647 cf->conn->remote_addr = &ctx->addr; in cf_socket_active()
1649 cf->conn->bits.ipv6 = (ctx->addr.family == AF_INET6); in cf_socket_active()
1757 *pres1 = (ctx->addr.family == AF_INET6); in cf_socket_query()
1834 rc = connect(ctx->sock, &ctx->addr.curl_sa_addr, in cf_udp_setup_quic()
1835 (curl_socklen_t)ctx->addr.addrlen); in cf_udp_setup_quic()
1852 switch(ctx->addr.family) { in cf_udp_setup_quic()
2279 *paddr = &ctx->addr; in Curl_cf_socket_peek()