/external/chromium_org/third_party/webrtc/base/ |
D | socketaddress.cc | 257 void SocketAddress::ToSockAddr(sockaddr_in* saddr) const { in ToSockAddr() 258 memset(saddr, 0, sizeof(*saddr)); in ToSockAddr() 260 saddr->sin_family = AF_UNSPEC; in ToSockAddr() 263 saddr->sin_family = AF_INET; in ToSockAddr() 264 saddr->sin_port = HostToNetwork16(port_); in ToSockAddr() 266 saddr->sin_addr.s_addr = INADDR_ANY; in ToSockAddr() 268 saddr->sin_addr = ip_.ipv4_address(); in ToSockAddr() 272 bool SocketAddress::FromSockAddr(const sockaddr_in& saddr) { in FromSockAddr() argument 273 if (saddr.sin_family != AF_INET) in FromSockAddr() 275 SetIP(NetworkToHost32(saddr.sin_addr.s_addr)); in FromSockAddr() [all …]
|
D | macasyncsocket.cc | 85 sockaddr_storage saddr = {0}; in Bind() local 86 size_t len = address.ToSockAddrStorage(&saddr); in Bind() 87 int err = ::bind(native_socket_, reinterpret_cast<sockaddr*>(&saddr), len); in Bind() 134 sockaddr_storage saddr; in DoConnect() local 135 size_t len = addr.ToSockAddrStorage(&saddr); in DoConnect() 136 int result = ::connect(native_socket_, reinterpret_cast<sockaddr*>(&saddr), in DoConnect() 178 sockaddr_storage saddr; in SendTo() local 179 size_t len = address.ToSockAddrStorage(&saddr); in SendTo() 181 reinterpret_cast<sockaddr*>(&saddr), len); in SendTo() 204 sockaddr_storage saddr; in RecvFrom() local [all …]
|
D | win32socketserver.cc | 307 sockaddr_storage saddr; in Bind() local 308 size_t len = addr.ToSockAddrStorage(&saddr); in Bind() 310 reinterpret_cast<sockaddr*>(&saddr), in Bind() 360 sockaddr_storage saddr = {0}; in DoConnect() local 361 size_t len = addr.ToSockAddrStorage(&saddr); in DoConnect() 364 reinterpret_cast<SOCKADDR*>(&saddr), in DoConnect() 428 sockaddr_storage saddr; in SendTo() local 429 size_t addr_len = addr.ToSockAddrStorage(&saddr); in SendTo() 432 reinterpret_cast<sockaddr*>(&saddr), in SendTo() 449 sockaddr_storage saddr; in RecvFrom() local [all …]
|
D | socketaddress.h | 167 void ToSockAddr(sockaddr_in* saddr) const; 170 bool FromSockAddr(const sockaddr_in& saddr); 178 size_t ToDualStackSockAddrStorage(sockaddr_storage* saddr) const; 179 size_t ToSockAddrStorage(sockaddr_storage* saddr) const; 208 bool SocketAddressFromSockAddrStorage(const sockaddr_storage& saddr,
|
/external/qemu/slirp/ |
D | tftp.c | 135 struct sockaddr_in saddr, daddr; in tftp_send_oack() local 157 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_oack() 158 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_oack() 165 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_oack() 176 struct sockaddr_in saddr, daddr; in tftp_send_error() local 197 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_error() 198 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_error() 208 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_error() 219 struct sockaddr_in saddr, daddr; in tftp_send_data() local 243 saddr.sin_addr = recv_tp->ip.ip_dst; in tftp_send_data() [all …]
|
D | bootp.c | 158 struct sockaddr_in saddr, daddr; in bootp_reply() local 221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); in bootp_reply() 222 saddr.sin_port = htons(BOOTP_SERVER); in bootp_reply() 233 rbp->bp_siaddr = saddr.sin_addr; /* Server IP address */ in bootp_reply() 260 memcpy(q, &saddr.sin_addr, 4); in bootp_reply() 273 memcpy(q, &saddr.sin_addr, 4); in bootp_reply() 316 udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in bootp_reply()
|
D | udp.c | 256 struct sockaddr_in *saddr, struct sockaddr_in *daddr, in udp_output2() argument 265 DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr); in udp_output2() 284 ui->ui_src = saddr->sin_addr; in udp_output2() 286 ui->ui_sport = saddr->sin_port; in udp_output2() 314 struct sockaddr_in saddr, daddr; in udp_output() local 316 saddr = *addr; in udp_output() 319 saddr.sin_addr.s_addr = alias_addr.s_addr; in udp_output() 322 saddr.sin_addr.s_addr = so->so_faddr.s_addr; in udp_output() 327 return udp_output2(so, m, &saddr, &daddr, so->so_iptos); in udp_output()
|
/external/llvm/test/Analysis/CostModel/ARM/ |
D | insertelement.ll | 11 define void @insertelement_i8(%T_i8* %saddr, 14 %v1 = load %T_i8* %saddr 25 define void @insertelement_i16(%T_i16* %saddr, 28 %v1 = load %T_i16* %saddr 38 define void @insertelement_i32(%T_i32* %saddr, 41 %v1 = load %T_i32* %saddr
|
/external/dhcpcd/ |
D | ifaddrs.c | 38 struct sockaddr_in *saddr = NULL; in get_interface() local 63 saddr = malloc(sizeof(struct sockaddr_in)); in get_interface() 64 if (saddr) { in get_interface() 65 saddr->sin_addr.s_addr = addr; in get_interface() 66 saddr->sin_family = family; in get_interface() 68 ifa->ifa_addr = (struct sockaddr *)saddr; in get_interface()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 882 saddr2str(saddr) in saddr2str() argument 883 const struct sockaddr *saddr; in saddr2str() 888 if (saddr == NULL) 891 if (saddr->sa_family == AF_UNSPEC) 894 GETNAMEINFO(saddr, addr, port); 902 saddrwop2str(saddr) in saddrwop2str() argument 903 const struct sockaddr *saddr; in saddrwop2str() 908 if (saddr == NULL) 911 GETNAMEINFO_NULL(saddr, addr); 936 naddrwop2str_fromto(const char *format, const struct netaddr *saddr, in naddrwop2str_fromto() argument [all …]
|
D | pfkey.c | 2220 struct sadb_address *saddr, *daddr; local 2236 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; 2247 saddr + 1, 2249 saddr->sadb_address_prefixlen, 2251 saddr->sadb_address_proto, 2257 saddr + 1, 2259 saddr->sadb_address_prefixlen, 2261 saddr->sadb_address_proto, 2342 struct sadb_address *saddr, *daddr; local 2358 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; [all …]
|
D | sockmisc.h | 72 const struct sockaddr *saddr, 80 extern char *naddrwop2str_fromto __P((const char *format, const struct netaddr *saddr, 82 extern int naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr);
|
/external/iputils/ |
D | traceroute6.c | 308 struct sockaddr_in6 saddr; variable 559 alen = sizeof(saddr); in main() 560 if (getsockname(probe_fd, (struct sockaddr*)&saddr, &alen) == -1) { in main() 564 saddr.sin6_port = 0; in main() 567 (void) memset((char *)&saddr, 0, sizeof(saddr)); in main() 568 saddr.sin6_family = AF_INET6; in main() 569 if (inet_pton(AF_INET6, source, &saddr.sin6_addr) <= 0) in main() 576 if (bind(sndsock, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { in main() 580 if (bind(icmp_sock, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { in main() 589 inet_ntop(AF_INET6, &saddr.sin6_addr, pa, sizeof(pa))); in main()
|
D | arping.c | 1123 struct sockaddr_in saddr; in main() local 1138 memset(&saddr, 0, sizeof(saddr)); in main() 1139 saddr.sin_family = AF_INET; in main() 1141 saddr.sin_addr = src; in main() 1142 if (bind(probe_fd, (struct sockaddr*)&saddr, sizeof(saddr)) == -1) { in main() 1148 socklen_t alen = sizeof(saddr); in main() 1150 saddr.sin_port = htons(1025); in main() 1151 saddr.sin_addr = dst; in main() 1155 if (connect(probe_fd, (struct sockaddr*)&saddr, sizeof(saddr)) == -1) { in main() 1159 if (getsockname(probe_fd, (struct sockaddr*)&saddr, &alen) == -1) { in main() [all …]
|
/external/qemu/slirp-android/ |
D | tftp.c | 135 SockAddress saddr, daddr; in tftp_send_oack() local 157 sock_address_init_inet( &saddr, in tftp_send_oack() 167 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_oack() 178 SockAddress saddr, daddr; in tftp_send_error() local 198 sock_address_init_inet( &saddr, in tftp_send_error() 209 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_error() 220 SockAddress saddr, daddr; in tftp_send_data() local 244 sock_address_init_inet( &saddr, in tftp_send_data() 267 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in tftp_send_data()
|
D | bootp.c | 163 SockAddress saddr, daddr; in bootp_reply() local 226 sock_address_init_inet( &saddr, special_addr_ip | CTL_ALIAS, in bootp_reply() 236 rbp->bp_siaddr = htonl(sock_address_get_ip(&saddr)); /* Server IP address */ in bootp_reply() 243 uint32_t saddr_ip = htonl(sock_address_get_ip(&saddr)); in bootp_reply() 320 udp_output2_(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY); in bootp_reply()
|
D | udp.c | 306 const SockAddress* saddr, in udp_output2_() argument 311 uint32_t saddr_ip = sock_address_get_ip(saddr); in udp_output2_() 313 int saddr_port = sock_address_get_port(saddr); in udp_output2_() 375 SockAddress saddr, daddr; in udp_output_() local 388 sock_address_init_inet( &saddr, saddr_ip, saddr_port ); in udp_output_() 391 return udp_output2_(so, m, &saddr, &daddr, so->so_iptos); in udp_output_()
|
/external/iptables/extensions/ |
D | libxt_policy.c | 127 if (e->match.saddr) in policy_parse() 131 e->match.saddr = 1; in policy_parse() 132 e->invert.saddr = cb->invert; in policy_parse() 133 memcpy(&e->saddr, &cb->val.haddr, sizeof(cb->val.haddr)); in policy_parse() 211 !(e->match.reqid || e->match.spi || e->match.saddr || in policy_check() 219 if ((e->match.saddr || e->match.daddr) in policy_check() 294 if (e->match.saddr) { in print_entry() 295 PRINT_INVERT(e->invert.saddr); in print_entry() 298 xtables_ip6addr_to_numeric(&e->saddr.a6), in print_entry() 302 xtables_ipaddr_to_numeric(&e->saddr.a4), in print_entry()
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
D | xt_policy.h | 21 __u8 saddr:1, member 40 union nf_inet_addr saddr; member 47 union xt_policy_addr saddr;
|
/external/qemu/net/ |
D | net.c | 214 struct sockaddr_in *saddr, in parse_host_src_port() argument 243 if (parse_host_port(saddr, src_str2) < 0) in parse_host_src_port() 254 int parse_host_port(struct sockaddr_in *saddr, const char *str) in parse_host_port() argument 264 saddr->sin_family = AF_INET; in parse_host_port() 266 saddr->sin_addr.s_addr = 0; in parse_host_port() 269 if (!inet_aton(buf, &saddr->sin_addr)) in parse_host_port() 274 saddr->sin_addr = *(struct in_addr *)he->h_addr; in parse_host_port() 280 saddr->sin_port = htons(port); in parse_host_port() 1668 struct sockaddr_in saddr; in net_socket_fd_init_dgram() local 1679 if (getsockname(fd, (struct sockaddr *) &saddr, &saddr_len) == 0) { in net_socket_fd_init_dgram() [all …]
|
/external/iputils/Modules/ |
D | pg3.c | 150 u32 saddr; in pg_setup_inject() local 172 saddr = 0; in pg_setup_inject() 177 saddr = in_dev->ifa_list->ifa_address; in pg_setup_inject() 182 *saddrp = saddr; in pg_setup_inject() 239 fill_packet(struct net_device *odev, __u32 saddr) in fill_packet() argument 277 iph->saddr = saddr; in fill_packet() 343 u32 saddr; in pg_inject() local 350 odev = pg_setup_inject(&saddr); in pg_inject() 354 skb = fill_packet(odev, saddr); in pg_inject()
|
/external/qemu/include/qemu/ |
D | sockets.h | 26 int parse_host_port(SockAddress* saddr, const char *str); 27 int parse_host_src_port(SockAddress* haddr, SockAddress* saddr,
|
/external/iptables/include/linux/netfilter/ |
D | xt_policy.h | 21 __u8 saddr:1, member 37 union xt_policy_addr saddr; member
|
/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_freebsd.c | 276 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 291 saddr = (struct sockaddr_in *) addr->addr; in l2_packet_get_ip_addr() 292 if (saddr && saddr->sin_family == AF_INET) { in l2_packet_get_ip_addr() 293 os_strlcpy(buf, inet_ntoa(saddr->sin_addr), in l2_packet_get_ip_addr()
|
D | l2_packet_linux.c | 173 struct sockaddr_in *saddr; in l2_packet_get_ip_addr() local 192 saddr = aliasing_hide_typecast(&ifr.ifr_addr, struct sockaddr_in); in l2_packet_get_ip_addr() 193 if (saddr->sin_family != AF_INET) in l2_packet_get_ip_addr() 195 res = os_strlcpy(buf, inet_ntoa(saddr->sin_addr), len); in l2_packet_get_ip_addr()
|