/external/webrtc/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 | 310 sockaddr_storage saddr; in Bind() local 311 size_t len = addr.ToSockAddrStorage(&saddr); in Bind() 313 reinterpret_cast<sockaddr*>(&saddr), in Bind() 363 sockaddr_storage saddr = {0}; in DoConnect() local 364 size_t len = addr.ToSockAddrStorage(&saddr); in DoConnect() 367 reinterpret_cast<SOCKADDR*>(&saddr), in DoConnect() 431 sockaddr_storage saddr; in SendTo() local 432 size_t addr_len = addr.ToSockAddrStorage(&saddr); in SendTo() 435 reinterpret_cast<sockaddr*>(&saddr), in SendTo() 452 sockaddr_storage saddr; in RecvFrom() local [all …]
|
D | socketaddress.h | 165 void ToSockAddr(sockaddr_in* saddr) const; 168 bool FromSockAddr(const sockaddr_in& saddr); 176 size_t ToDualStackSockAddrStorage(sockaddr_storage* saddr) const; 177 size_t ToSockAddrStorage(sockaddr_storage* saddr) const; 187 bool SocketAddressFromSockAddrStorage(const sockaddr_storage& saddr,
|
/external/iproute2/ip/ |
D | tcp_metrics.c | 78 inet_prefix saddr; member 98 inet_prefix daddr, saddr; in process_msg() local 138 if (f.saddr.family && f.saddr.family != AF_INET) in process_msg() 141 memcpy(&saddr.data, RTA_DATA(a), 4); in process_msg() 142 saddr.bytelen = 4; in process_msg() 146 if (f.saddr.family && f.saddr.family != AF_INET6) in process_msg() 149 memcpy(&saddr.data, RTA_DATA(a), 16); in process_msg() 150 saddr.bytelen = 16; in process_msg() 161 if (slen && f.saddr.family && f.saddr.bitlen >= 0 && in process_msg() 162 inet_addr_match(&saddr, &f.saddr, f.saddr.bitlen)) in process_msg() [all …]
|
D | link_vti6.c | 62 struct in6_addr saddr = IN6ADDR_ANY_INIT; in vti6_parse_opt() local 103 memcpy(&saddr, RTA_DATA(vtiinfo[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_parse_opt() 180 memcpy(&saddr, addr.data, addr.bytelen); in vti6_parse_opt() 199 if (memcmp(&saddr, &in6addr_any, sizeof(in6addr_any))) in vti6_parse_opt() 200 addattr_l(n, 1024, IFLA_VTI_LOCAL, &saddr, sizeof(saddr)); in vti6_parse_opt() 214 struct in6_addr saddr; in vti6_print_opt() local 231 memcpy(&saddr, RTA_DATA(tb[IFLA_VTI_LOCAL]), sizeof(saddr)); in vti6_print_opt() 233 local = format_host(AF_INET6, 16, &saddr); in vti6_print_opt()
|
/external/libevent/test/ |
D | test-fdleak.c | 60 static struct sockaddr_in saddr; variable 134 -1, (struct sockaddr *)&saddr, sizeof(saddr)); in start_loop() 148 memcpy(&saddr, &ss, sizeof(saddr)); in start_loop() 149 if (saddr.sin_family != AF_INET) { in start_loop() 211 if (bufferevent_socket_connect(bev, (struct sockaddr *)&saddr, in start_client() 212 sizeof(saddr)) < 0) { in start_client() 239 memset(&saddr, 0, sizeof(saddr)); in main() 240 saddr.sin_family = AF_INET; in main() 241 saddr.sin_addr.s_addr = htonl(0x7f000001); in main() 242 saddr.sin_port = 0; /* Tell the implementation to pick a port. */ in main()
|
/external/wpa_supplicant_8/src/ap/ |
D | ndisc_snoop.c | 102 struct in6_addr saddr; in handle_ndisc() local 121 os_memcpy(&saddr, &msg->ipv6h.ip6_src, sizeof(saddr)); in handle_ndisc() 122 if (!(saddr.s6_addr32[0] == 0 && saddr.s6_addr32[1] == 0 && in handle_ndisc() 123 saddr.s6_addr32[2] == 0 && saddr.s6_addr32[3] == 0)) { in handle_ndisc() 130 if (sta_has_ip6addr(sta, &saddr)) in handle_ndisc() 133 if (inet_ntop(AF_INET6, &saddr, addrtxt, in handle_ndisc() 138 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &saddr); in handle_ndisc() 140 (u8 *) &saddr, in handle_ndisc() 149 if (sta_ip6addr_add(sta, &saddr)) in handle_ndisc()
|
/external/u-boot/arch/arm/mach-rmobile/include/mach/ |
D | rcar-mstp.h | 12 #define mstp_setbits(type, addr, saddr, set) \ argument 13 out_##type((saddr), in_##type(addr) | (set)) 14 #define mstp_clrbits(type, addr, saddr, clear) \ argument 15 out_##type((saddr), in_##type(addr) & ~(clear)) 18 #define mstp_setbits_le32(addr, saddr, set) \ argument 19 mstp_setbits(le32, addr, saddr, set) 20 #define mstp_clrbits_le32(addr, saddr, clear) \ argument 21 mstp_clrbits(le32, addr, saddr, clear)
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_lib.h | 91 struct sockaddr_in saddr, daddr; in pair_udp_open() local 100 memset(&saddr, 0, sizeof(saddr)); in pair_udp_open() 101 saddr.sin_family = AF_INET; in pair_udp_open() 102 saddr.sin_port = htons(port); in pair_udp_open() 103 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open() 115 if (bind(fds[0], (void *) &saddr, sizeof(saddr))) { in pair_udp_open()
|
D | reuseport_dualstack.c | 75 struct sockaddr_in saddr, daddr; in send_from_v4() local 78 saddr.sin_family = AF_INET; in send_from_v4() 79 saddr.sin_addr.s_addr = htonl(INADDR_ANY); in send_from_v4() 80 saddr.sin_port = 0; in send_from_v4() 90 if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr))) in send_from_v4()
|
/external/llvm/test/Analysis/CostModel/ARM/ |
D | insertelement.ll | 11 define void @insertelement_i8(%T_i8* %saddr, 14 %v1 = load %T_i8, %T_i8* %saddr 25 define void @insertelement_i16(%T_i16* %saddr, 28 %v1 = load %T_i16, %T_i16* %saddr 38 define void @insertelement_i32(%T_i32* %saddr, 41 %v1 = load %T_i32, %T_i32* %saddr
|
/external/honggfuzz/examples/glibc/ |
D | resolver.c | 47 struct sockaddr_in saddr; in getdata() local 48 saddr.sin_family = AF_INET; in getdata() 49 saddr.sin_port = htons(53); in getdata() 50 saddr.sin_addr.s_addr = inet_addr("127.0.0.53"); in getdata() 51 if (bind(myfd, (struct sockaddr *)&saddr, sizeof(saddr)) == -1) { in getdata()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/CostModel/ARM/ |
D | insertelement.ll | 11 define void @insertelement_i8(%T_i8* %saddr, 14 %v1 = load %T_i8, %T_i8* %saddr 25 define void @insertelement_i16(%T_i16* %saddr, 28 %v1 = load %T_i16, %T_i16* %saddr 38 define void @insertelement_i32(%T_i32* %saddr, 41 %v1 = load %T_i32, %T_i32* %saddr
|
/external/toybox/toys/pending/ |
D | arping.c | 236 struct sockaddr_in saddr; in arping_main() local 242 memset(&saddr, 0, sizeof(saddr)); in arping_main() 243 saddr.sin_family = AF_INET; in arping_main() 245 saddr.sin_addr = src_addr; in arping_main() 246 if (bind(p_fd, (struct sockaddr*)&saddr, sizeof(saddr))) in arping_main() 251 saddr.sin_port = htons(1025); in arping_main() 252 saddr.sin_addr = dest_addr; in arping_main() 253 if (connect(p_fd, (struct sockaddr *) &saddr, sizeof(saddr))) in arping_main()
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 897 saddr2str(saddr) in saddr2str() argument 898 const struct sockaddr *saddr; in saddr2str() 903 if (saddr == NULL) 906 if (saddr->sa_family == AF_UNSPEC) 909 GETNAMEINFO(saddr, addr, port); 917 saddrwop2str(saddr) in saddrwop2str() argument 918 const struct sockaddr *saddr; in saddrwop2str() 923 if (saddr == NULL) 926 GETNAMEINFO_NULL(saddr, addr); 951 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 …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_tcp_estats.c | 180 __be32 *saddr, __be32 *daddr) in conn_id_ipv4_init() argument 184 unaligned_u32_set(conn_id->localaddress.data, (__u8 *)saddr); in conn_id_ipv4_init() 189 __be32 *saddr, __be32 *daddr) in conn_id_ipv6_init() argument 193 unaligned_u32_set(conn_id->localaddress.data, (__u8 *)saddr); in conn_id_ipv6_init() 195 (__u8 *)(saddr + 1)); in conn_id_ipv6_init() 197 (__u8 *)(saddr + 2)); in conn_id_ipv6_init() 199 (__u8 *)(saddr + 3)); in conn_id_ipv6_init()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/ |
D | 2-1.c | 41 void *saddr; in thread_func() local 49 if ((rc = pthread_attr_getstack(&attr, &saddr, &ssize)) != 0) { in thread_func() 53 if (ssize != stack_size || saddr != stack_addr) { in thread_func() 67 void *saddr; in main() local 105 if ((rc = pthread_attr_getstack(&attr, &saddr, &ssize)) != 0) { in main()
|
/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()
|
/external/iproute2/tc/ |
D | m_skbmod.c | 62 char *saddr = NULL; in parse_skbmod() local 105 saddr = *argv; in parse_skbmod() 106 if (sscanf(saddr, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", in parse_skbmod() 110 saddr); in parse_skbmod() 114 fprintf(stderr, "src MAC address <%s>\n", saddr); in parse_skbmod() 154 if (saddr) in parse_skbmod()
|
/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()
|
D | libxt_connlimit.t | 11 …imit --connlimit-above 10 --connlimit-saddr;-m connlimit --connlimit-above 10 --connlimit-mask 32 … 13 -m connlimit --connlimit-above 10 --connlimit-saddr --connlimit-daddr;;FAIL 14 -m connlimit --connlimit-above 10 --connlimit-mask 32 --connlimit-saddr;=;OK
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
D | xt_policy.h | 24 __u8 saddr:1, member 43 union nf_inet_addr saddr; member 50 union xt_policy_addr saddr;
|
/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()
|