/haiku/src/add-ons/kernel/network/dns_resolver/server/ |
H A D | main.cpp | 39 if (current->ai_addr != NULL) { in Serialize() 71 if (current->ai_addr != NULL) { in Serialize() 73 memcpy(reply + sockPos, current->ai_addr, sizeof(sockaddr_in)); in Serialize() 74 temp.ai_addr = reinterpret_cast<sockaddr*>(sockPos); in Serialize() 77 memcpy(reply + sockPos, current->ai_addr, sizeof(sockaddr_in6)); in Serialize() 78 temp.ai_addr = reinterpret_cast<sockaddr*>(sockPos); in Serialize()
|
/haiku/src/tests/system/network/multicast/ |
H A D | multicat.c | 232 if (bind(fd, ai->ai_addr, ai->ai_addrlen) == 0) in open_multicast_socket() 237 if (connect(fd, ai->ai_addr, ai->ai_addrlen) < 0) in open_multicast_socket() 265 memcpy(&gsr.gsr_group, ai->ai_addr, ai->ai_addrlen); in open_multicast_socket() 266 memcpy(&gsr.gsr_source, sai->ai_addr, sai->ai_addrlen); in open_multicast_socket() 273 memcpy(&gr.gr_group, ai->ai_addr, ai->ai_addrlen); in open_multicast_socket()
|
H A D | multisend.c | 120 if (connect(fd, ai->ai_addr, ai->ai_addrlen) == 0) in open_multicast_socket() 158 if (bind(fd, sai->ai_addr, sai->ai_addrlen) < 0) in open_multicast_socket()
|
/haiku/src/add-ons/kernel/network/dns_resolver/kernel_add_on/ |
H A D | dns_resolver.cpp | 103 uint64 addrOffset = reinterpret_cast<uint64>(current->ai_addr); in RelocateEntries() 107 if (current->ai_addr != NULL) { in RelocateEntries() 108 current->ai_addr in RelocateEntries()
|
/haiku/src/tests/system/network/icmp/ |
H A D | big_datagram.cpp | 109 iph->ip_dst.s_addr = ((struct sockaddr_in*)ai->ai_addr)->sin_addr.s_addr; in main() 143 int bytesSent = sendto(sockfd, datagram, size, 0, ai->ai_addr, in main()
|
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getaddrinfo.c | 419 return &((struct sockaddr_in *)(void *)ai->ai_addr)->sin_port; in getport() 422 return &((struct sockaddr_in6 *)(void *)ai->ai_addr)->sin6_port; in getport() 481 pai->ai_addr = NULL; in getaddrinfo() 489 hints->ai_addr || hints->ai_next) in getaddrinfo() 746 aio[i].aio_dstscope = gai_addr2scopetype(ai->ai_addr); in reorder() 747 aio[i].aio_dstpolicy = match_addrselectpolicy(ai->ai_addr, in reorder() 916 memcpy(&ss, ai.ai_addr, ai.ai_addrlen); in set_source() 917 ai.ai_addr = (void *)&ss; in set_source() 931 if (connect(s, ai.ai_addr, ai.ai_addrlen) < 0) in set_source() 940 aio->aio_matchlen = matchlen(&aio->aio_srcsa, aio->aio_ai->ai_addr); in set_source() [all …]
|
/haiku/headers/posix/ |
H A D | netdb.h | 53 struct sockaddr* ai_addr; member
|
/haiku/src/kits/network/libnetapi/ |
H A D | NetworkAddressResolver.cpp | 235 address.SetTo(*info->ai_addr, info->ai_addrlen); in GetNextAddress() 264 address.SetTo(*info->ai_addr, info->ai_addrlen); in GetNextAddress()
|
/haiku/src/bin/network/traceroute/ |
H A D | as.c | 88 if (connect(s, res->ai_addr, res->ai_addrlen) >= 0) in as_setup()
|
/haiku/src/libs/util/ |
H A D | realhostname.c | 140 sa = res->ai_addr; in realhostname_sa()
|
/haiku/src/bin/network/telnet/ |
H A D | commands.c | 2327 gni_err = getnameinfo(res->ai_addr, res->ai_addr->sa_len, in tn() 2376 printf("Trying %s...\n", sockaddr_ntop(res->ai_addr)); in tn() 2419 if (bind(net, src_res->ai_addr, src_res->ai_addrlen) == -1) { in tn() 2444 if (connect(net, res->ai_addr, res->ai_addrlen) < 0) { in tn() 2452 warn("connect to address %s", sockaddr_ntop(res->ai_addr)); in tn() 2971 sin6 = (struct sockaddr_in6 *)res->ai_addr; in sourceroute() 2977 _sin = (struct sockaddr_in *)res->ai_addr; in sourceroute()
|
/haiku/src/bin/network/ftpd/ |
H A D | ftpd.c | 780 for (ai = res; ai != NULL && ai->ai_addr != NULL; in inithosts() 790 memcmp(hi->ai_addr, in inithosts() 791 ai->ai_addr, in inithosts() 792 ai->ai_addr->sa_len) == 0) { in inithosts() 819 addr = &((struct sockaddr_in *)hrp->hostinfo->ai_addr)->sin_addr; in inithosts() 823 addr = &((struct sockaddr_in6 *)hrp->hostinfo->ai_addr)->sin6_addr; in inithosts() 910 if (memcmp(su, hi->ai_addr, hi->ai_addrlen) == 0) { in selecthost() 916 if (hi->ai_addr->sa_family == AF_INET && mapped_in6 != NULL && in selecthost() 918 &((struct sockaddr_in *)hi->ai_addr)->sin_addr, in selecthost() 3497 if (bind(*s, r->ai_addr, r->ai_addrlen) < 0) { in socksetup()
|
H A D | ftpcmd.y | 385 memcpy(&data_dest, res->ai_addr, res->ai_addrlen);
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | Connection.cpp | 300 memcpy(&address->fAddress, fCurrent->ai_addr, sizeof(sockaddr_in)); in GetNextAddress() 304 memcpy(&address->fAddress, fCurrent->ai_addr, sizeof(sockaddr_in6)); in GetNextAddress()
|
/haiku/src/bin/network/ping/ |
H A D | ping6.c | 531 memcpy(&src, res->ai_addr, res->ai_addrlen); in ping6() 674 if (!res->ai_addr) in ping6() 677 (void)memcpy(&dst, res->ai_addr, res->ai_addrlen); in ping6() 719 res->ai_addr, res->ai_addrlen)) { in ping6() 990 if (res->ai_addr->sa_family != AF_INET6) in ping6() 993 sin6 = (struct sockaddr_in6 *)(void *)res->ai_addr; in ping6()
|
/haiku/src/bin/network/telnetd/ |
H A D | telnetd.c | 357 if (bind(s, res->ai_addr, res->ai_addrlen) < 0) in main() 362 ns = accept(s, res->ai_addr, &foo); in main()
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_init.c | 412 ai->ai_addr, ai->ai_addrlen); in __res_vinit() 417 ai->ai_addr, ai->ai_addrlen); in __res_vinit()
|