/external/toybox/toys/pending/ |
D | tftpd.c | 77 static void send_errpkt(struct sockaddr *dstaddr, in send_errpkt() argument 83 if (sendto(TT.sfd, g_errpkt, strlen(errmsg)+5, 0, dstaddr, socklen) < 0) in send_errpkt() 103 static void do_action(struct sockaddr *srcaddr, struct sockaddr *dstaddr, in do_action() argument 124 send_errpkt(dstaddr, socklen, "can't open file"); in do_action() 165 send_errpkt(dstaddr, socklen, "read-error"); in do_action() 175 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0) in do_action() 195 send_errpkt(dstaddr, socklen, "read-error"); in do_action() 233 send_errpkt(dstaddr, socklen, "write error"); in do_action() 255 struct sockaddr_storage srcaddr, dstaddr; in tftpd_main() local 266 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen); in tftpd_main() [all …]
|
/external/ltp/include/ |
D | tst_netdevice.h | 78 unsigned int srcprefix, size_t srclen, const void *dstaddr, 81 #define NETDEV_ADD_ROUTE(ifname, family, srcaddr, srcprefix, srclen, dstaddr, \ argument 84 (srcaddr), (srcprefix), (srclen), (dstaddr), (dstprefix), \ 94 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway); 95 #define NETDEV_ADD_ROUTE_INET(ifname, srcaddr, srcprefix, dstaddr, dstprefix, \ argument 98 (srcprefix), (dstaddr), (dstprefix), (gateway)) 105 unsigned int srcprefix, size_t srclen, const void *dstaddr, 109 dstaddr, dstprefix, dstlen, gateway, gatewaylen) \ argument 111 (srcaddr), (srcprefix), (srclen), (dstaddr), (dstprefix), \ 119 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway); [all …]
|
/external/libwebsockets/lib/plat/windows/ |
D | windows-sockets.c | 481 struct sockaddr_in dstaddr; in lws_plat_inet_pton() local 482 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton() 484 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton() 485 dstaddr.sin_family = AF_INET; in lws_plat_inet_pton() 487 if (!WSAStringToAddressW(buffer, af, 0, (struct sockaddr *) &dstaddr, &dstaddrlen)) { in lws_plat_inet_pton() 489 memcpy(dst, &dstaddr.sin_addr, sizeof(dstaddr.sin_addr)); in lws_plat_inet_pton() 493 struct sockaddr_in6 dstaddr; in lws_plat_inet_pton() local 494 int dstaddrlen = sizeof(dstaddr); in lws_plat_inet_pton() 496 memset(&dstaddr, 0, sizeof(dstaddr)); in lws_plat_inet_pton() 497 dstaddr.sin6_family = AF_INET6; in lws_plat_inet_pton() [all …]
|
/external/ltp/runtest/ |
D | net_stress.broken_ip | 12 broken_ip4-dstaddr broken_ip-dstaddr.sh 14 broken_ip6-dstaddr broken_ip-dstaddr.sh -6
|
/external/ltp/lib/ |
D | tst_netdevice.c | 373 const void *dstaddr, unsigned int dstprefix, size_t dstlen, in modify_route() argument 420 if (dstaddr && !tst_rtnl_add_attr(file, lineno, ctx, RTA_DST, dstaddr, in modify_route() 452 in_addr_t srcaddr, unsigned int srcprefix, in_addr_t dstaddr, in modify_route_inet() argument 464 dst = &dstaddr; in modify_route_inet() 465 dstlen = sizeof(dstaddr); in modify_route_inet() 479 unsigned int srcprefix, size_t srclen, const void *dstaddr, in tst_netdev_add_route() argument 485 srclen, dstaddr, dstprefix, dstlen, gateway, gatewaylen); in tst_netdev_add_route() 490 in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway) in tst_netdev_add_route_inet() argument 493 NLM_F_CREATE | NLM_F_EXCL, ifname, srcaddr, srcprefix, dstaddr, in tst_netdev_add_route_inet() 499 unsigned int srcprefix, size_t srclen, const void *dstaddr, in tst_netdev_remove_route() argument [all …]
|
/external/libpcap/ |
D | fad-gifc.c | 148 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 357 dstaddr = NULL; in pcap_findalldevs_interfaces() 369 dstaddr = &ifrdstaddr.ifr_dstaddr; in pcap_findalldevs_interfaces() 370 dstaddr_size = SA_LEN(dstaddr); in pcap_findalldevs_interfaces() 377 dstaddr = NULL; in pcap_findalldevs_interfaces() 416 dstaddr, dstaddr_size, errbuf) < 0) { in pcap_findalldevs_interfaces()
|
D | fad-getad.c | 150 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 256 dstaddr = ifa->ifa_dstaddr; in pcap_findalldevs_interfaces() 259 dstaddr = NULL; in pcap_findalldevs_interfaces() 269 broadaddr, broadaddr_size, dstaddr, dstaddr_size, in pcap_findalldevs_interfaces()
|
D | fad-glifc.c | 90 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local 283 dstaddr = NULL; in pcap_findalldevs_interfaces() 294 dstaddr = (struct sockaddr *)&ifrdstaddr.lifr_dstaddr; in pcap_findalldevs_interfaces() 296 dstaddr = NULL; in pcap_findalldevs_interfaces() 335 dstaddr, sizeof (struct sockaddr_storage), errbuf) < 0) { in pcap_findalldevs_interfaces()
|
D | pcap-sita.c | 114 …printf("%15s ", (addr->dstaddr) ? inet_ntoa(((struct sockaddr_in *)addr->dstaddr)->sin_addr) : ""… in dump_interface_list() 142 … %p %p %p %p, next: %p\n", addr->addr, addr->netmask, addr->broadaddr, addr->dstaddr, addr->next); in dump_interface_list_p() 407 if (addr->dstaddr) free(addr->dstaddr); in acn_freealldevs() 696 addr->dstaddr = (struct sockaddr *)s; in process_client_data()
|
D | pcap.c | 1072 struct sockaddr *dstaddr, size_t dstaddr_size, argument 1103 netmask_size, broadaddr, broadaddr_size, dstaddr, 1117 struct sockaddr *dstaddr, size_t dstaddr_size, argument 1172 if (dstaddr != NULL && dstaddr_size != 0) { 1173 curaddr->dstaddr = (struct sockaddr *)dup_sockaddr(dstaddr, dstaddr_size); 1174 if (curaddr->dstaddr == NULL) { 1187 curaddr->dstaddr = NULL; 1445 if (curaddr->dstaddr) 1446 free(curaddr->dstaddr);
|
D | pcap-dos.c | 580 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_platform_finddevs() 617 dstaddr = (struct sockaddr*) &sa_ll_1; in pcap_platform_finddevs() 624 dstaddr, sizeof(*dstaddr), errbuf) < 0) in pcap_platform_finddevs()
|
D | rpcap-protocol.h | 272 struct rpcap_sockaddr dstaddr; /* P2P destination address for that address */ member
|
D | pcap-int.h | 540 struct sockaddr *dstaddr, size_t, char *errbuf);
|
D | pcap-rpcap.c | 2607 free(addr->dstaddr); in freeaddr() 2794 addr->dstaddr = NULL; in pcap_findalldevs_ex_remote() 2814 if (rpcap_deseraddr(&ifaddr.dstaddr, in pcap_findalldevs_ex_remote() 2815 (struct sockaddr_storage **) &addr->dstaddr, errbuf) == -1) in pcap_findalldevs_ex_remote() 2822 (addr->broadaddr == NULL) && (addr->dstaddr == NULL)) in pcap_findalldevs_ex_remote()
|
/external/libpcap/testprogs/ |
D | findalldevstest.c | 275 if (a->dstaddr) in ifprint() 278 &((struct sockaddr_in *)(a->dstaddr))->sin_addr, in ifprint() 299 if (a->dstaddr) in ifprint() 302 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr, in ifprint()
|
/external/mdnsresponder/mDNSPosix/ |
D | NetMonitor.c | 474 …*const end, const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterf… in DisplayPacketHeader() argument 493 if (!mDNSAddrIsDNSMulticast(dstaddr)) mprintf(" To: %#a", dstaddr); in DisplayPacketHeader() 610 …const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterfaceID Interf… in DisplayQuery() argument 619 DisplayPacketHeader(m, msg, end, srcaddr, srcport, dstaddr, InterfaceID); in DisplayQuery() 689 …const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterfaceID Interf… in DisplayResponse() argument 696 DisplayPacketHeader(m, msg, end, srcaddr, srcport, dstaddr, InterfaceID); in DisplayResponse() 705 if (mDNSAddrIsDNSMulticast(dstaddr)) in DisplayResponse() 779 …const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, mDNSIPPort dstport, const mD… in mDNSCoreReceive() argument 787 (void)dstaddr; // Unused in mDNSCoreReceive() 802 if (!mDNSAddrIsDNSMulticast(dstaddr)) in mDNSCoreReceive() [all …]
|
D | Identify.c | 94 …const mDNSAddr *const srcaddr, const mDNSIPPort srcport, const mDNSAddr *const dstaddr, const mDNS… in mDNSCoreReceive() argument 97 (void)dstaddr; // Unused in mDNSCoreReceive()
|
/external/curl/packages/OS400/ |
D | os400sys.c | 1162 sockaddr2ebcdic(struct sockaddr_storage *dstaddr, in sockaddr2ebcdic() argument 1173 sizeof(srcaddr->sa_family) || srclen > sizeof(*dstaddr)) { in sockaddr2ebcdic() 1178 memcpy((char *) dstaddr, (char *) srcaddr, srclen); in sockaddr2ebcdic() 1184 dstu = (struct sockaddr_un *) dstaddr; in sockaddr2ebcdic() 1185 dstsize = sizeof(*dstaddr) - offsetof(struct sockaddr_un, sun_path); in sockaddr2ebcdic() 1197 sockaddr2ascii(struct sockaddr *dstaddr, int dstlen, in sockaddr2ascii() argument 1215 memcpy((char *) dstaddr, (char *) srcaddr, srclen); in sockaddr2ascii() 1223 dstu = (struct sockaddr_un *) dstaddr; in sockaddr2ascii() 1268 const struct sockaddr *dstaddr, int addrlen) in Curl_os400_sendto() argument 1273 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
|
/external/ltp/testcases/network/stress/broken_ip/ |
D | 00_Descriptions.txt | 25 broken_ip4-dstaddr 42 broken_ip6-dstaddr
|
/external/tcpdump/ |
D | print-nfs.c | 206 char srcaddr[INET6_ADDRSTRLEN], dstaddr[INET6_ADDRSTRLEN]; in print_nfsaddr() local 208 srcaddr[0] = dstaddr[0] = '\0'; in print_nfsaddr() 213 strlcpy(dstaddr, GET_IPADDR_STRING(ip->ip_dst), sizeof(dstaddr)); in print_nfsaddr() 219 strlcpy(dstaddr, GET_IP6ADDR_STRING(ip6->ip6_dst), in print_nfsaddr() 220 sizeof(dstaddr)); in print_nfsaddr() 224 strlcpy(dstaddr, "?", sizeof(dstaddr)); in print_nfsaddr() 228 ND_PRINT("%s.%s > %s.%s: ", srcaddr, s, dstaddr, d); in print_nfsaddr()
|
/external/openthread/src/core/mac/ |
D | mac.cpp | 1736 Address dstaddr; in HandleReceivedFrame() local 1752 IgnoreError(aFrame->GetDstAddr(dstaddr)); in HandleReceivedFrame() 1756 switch (dstaddr.GetType()) in HandleReceivedFrame() 1762 … VerifyOrExit((mRxOnWhenIdle && dstaddr.IsBroadcast()) || dstaddr.GetShort() == GetShortAddress(), in HandleReceivedFrame() 1767 … if (neighbor == nullptr && dstaddr.IsBroadcast() && Get<Mle::MleRouter>().IsFullThreadDevice()) in HandleReceivedFrame() 1776 … VerifyOrExit(dstaddr.GetExtended() == GetExtAddress(), error = kErrorDestinationAddressFiltered); in HandleReceivedFrame() 1829 if (dstaddr.IsBroadcast()) in HandleReceivedFrame() 1948 if (!dstaddr.IsNone()) in HandleReceivedFrame()
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-variadic-aapcs.ll | 132 %dstaddr = bitcast %va_list* @second_list to i8* 133 call void @llvm.va_copy(i8* %dstaddr, i8* %srcaddr)
|
/external/ltp/doc/ |
D | network-c-api.txt | 218 *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, 224 +dstaddr+ are optional. You must also specify the corresponding length 230 int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t 238 *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, 245 unsigned int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t
|
/external/curl/lib/ |
D | setup-os400.h | 208 const struct sockaddr *dstaddr, int addrlen);
|
/external/mdnsresponder/mDNSCore/ |
D | mDNS.c | 6217 const mDNSAddr *srcaddr, const mDNSIPPort srcport, const mDNSAddr *dstaddr, mDNSIPPort dstport, in mDNSCoreReceiveQuery() argument 6221 mDNSBool QueryWasLocalUnicast = srcaddr && dstaddr && in mDNSCoreReceiveQuery() 6222 !mDNSAddrIsDNSMulticast(dstaddr) && mDNS_AddressIsLocalSubnet(m, InterfaceID, srcaddr); in mDNSCoreReceiveQuery() 6224 if (!InterfaceID && dstaddr && mDNSAddrIsDNSMulticast(dstaddr)) in mDNSCoreReceiveQuery() 6228 srcaddr, mDNSVal16(srcport), dstaddr, mDNSVal16(dstport), InterfaceID, in mDNSCoreReceiveQuery() 6238 srcaddr, mDNSVal16(srcport), dstaddr, mDNSVal16(dstport), InterfaceID, in mDNSCoreReceiveQuery() 6245 …!mDNSSameIPPort(srcport, MulticastDNSPort), mDNSAddrIsDNSMulticast(dstaddr), QueryWasLocalUnicast,… in mDNSCoreReceiveQuery() 6471 const mDNSAddr *srcaddr, const mDNSIPPort srcport, const mDNSAddr *dstaddr, mDNSIPPort dstport, in mDNSCoreReceiveResponse() argument 6475 mDNSBool ResponseMCast = dstaddr && mDNSAddrIsDNSMulticast(dstaddr); in mDNSCoreReceiveResponse() 6497 srcaddr, dstaddr, InterfaceID, in mDNSCoreReceiveResponse() [all …]
|