Home
last modified time | relevance | path

Searched refs:dstaddr (Results 1 – 25 of 38) sorted by relevance

12

/external/toybox/toys/pending/
Dtftpd.c77 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/
Dtst_netdevice.h78 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/
Dwindows-sockets.c481 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/
Dnet_stress.broken_ip12 broken_ip4-dstaddr broken_ip-dstaddr.sh
14 broken_ip6-dstaddr broken_ip-dstaddr.sh -6
/external/ltp/lib/
Dtst_netdevice.c373 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/
Dfad-gifc.c148 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()
Dfad-getad.c150 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()
Dfad-glifc.c90 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()
Dpcap-sita.c114 …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()
Dpcap.c1072 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);
Dpcap-dos.c580 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()
Drpcap-protocol.h272 struct rpcap_sockaddr dstaddr; /* P2P destination address for that address */ member
Dpcap-int.h540 struct sockaddr *dstaddr, size_t, char *errbuf);
Dpcap-rpcap.c2607 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/
Dfindalldevstest.c275 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/
DNetMonitor.c474 …*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 …]
DIdentify.c94 …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/
Dos400sys.c1162 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/
D00_Descriptions.txt25 broken_ip4-dstaddr
42 broken_ip6-dstaddr
/external/tcpdump/
Dprint-nfs.c206 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/
Dmac.cpp1736 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/
Darm64-variadic-aapcs.ll132 %dstaddr = bitcast %va_list* @second_list to i8*
133 call void @llvm.va_copy(i8* %dstaddr, i8* %srcaddr)
/external/ltp/doc/
Dnetwork-c-api.txt218 *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/
Dsetup-os400.h208 const struct sockaddr *dstaddr, int addrlen);
/external/mdnsresponder/mDNSCore/
DmDNS.c6217 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 …]

12