Home
last modified time | relevance | path

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

/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()
88 static void do_action(struct sockaddr *srcaddr, struct sockaddr *dstaddr, in do_action() argument
109 send_errpkt(dstaddr, socklen, "can't open file"); in do_action()
150 send_errpkt(dstaddr, socklen, "read-error"); in do_action()
160 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0) in do_action()
180 send_errpkt(dstaddr, socklen, "read-error"); in do_action()
218 send_errpkt(dstaddr, socklen, "write error"); in do_action()
240 struct sockaddr_storage srcaddr, dstaddr; in tftpd_main() local
253 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen); in tftpd_main()
[all …]
/external/libpcap/
Dfad-win32.c56 struct sockaddr *dstaddr, char *errbuf) in add_addr_to_list() argument
104 if (dstaddr != NULL) { in add_addr_to_list()
105 curaddr->dstaddr = (struct sockaddr*)dup_sockaddr(dstaddr, sizeof(struct sockaddr_storage)); in add_addr_to_list()
106 if (curaddr->dstaddr == NULL) { in add_addr_to_list()
113 curaddr->dstaddr = NULL; in add_addr_to_list()
Dfad-gifc.c153 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local
346 dstaddr = NULL; in pcap_findalldevs_interfaces()
358 dstaddr = &ifrdstaddr.ifr_dstaddr; in pcap_findalldevs_interfaces()
359 dstaddr_size = SA_LEN(dstaddr); in pcap_findalldevs_interfaces()
366 dstaddr = NULL; in pcap_findalldevs_interfaces()
404 broadaddr, broadaddr_size, dstaddr, dstaddr_size, in pcap_findalldevs_interfaces()
Dfad-getad.c156 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local
230 dstaddr = ifa->ifa_dstaddr; in pcap_findalldevs_interfaces()
233 dstaddr = NULL; in pcap_findalldevs_interfaces()
271 broadaddr, broadaddr_size, dstaddr, dstaddr_size, in pcap_findalldevs_interfaces()
Dfad-glifc.c96 struct sockaddr *netmask, *broadaddr, *dstaddr; in pcap_findalldevs_interfaces() local
305 dstaddr = NULL; in pcap_findalldevs_interfaces()
316 dstaddr = (struct sockaddr *)&ifrdstaddr.lifr_dstaddr; in pcap_findalldevs_interfaces()
318 dstaddr = NULL; in pcap_findalldevs_interfaces()
356 dstaddr, sizeof (struct sockaddr_storage), errbuf) < 0) { in pcap_findalldevs_interfaces()
Dinet.c411 struct sockaddr *dstaddr, size_t dstaddr_size, in add_addr_to_iflist() argument
560 if (dstaddr != NULL) { in add_addr_to_iflist()
561 curaddr->dstaddr = dup_sockaddr(dstaddr, dstaddr_size); in add_addr_to_iflist()
562 if (curaddr->dstaddr == NULL) { in add_addr_to_iflist()
575 curaddr->dstaddr = NULL; in add_addr_to_iflist()
640 if (curaddr->dstaddr) in pcap_freealldevs()
641 free(curaddr->dstaddr); in pcap_freealldevs()
Dpcap-sita.c108 …printf("%15s ", (addr->dstaddr) ? inet_ntoa(((struct sockaddr_in *)addr->dstaddr)->sin_addr) : ""… in dump_interface_list()
136 … %p %p %p %p, next: %p\n", addr->addr, addr->netmask, addr->broadaddr, addr->dstaddr, addr->next); in dump_interface_list_p()
396 if (addr->dstaddr) free(addr->dstaddr);
676 addr->dstaddr = (struct sockaddr *)s;
Dpcap1.h213 struct sockaddr *dstaddr; /* P2P destination address for that address */ member
Dpcap-dos.c537 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; in pcap_findalldevs() local
560 dstaddr = (struct sockaddr*) &sa_ll_1; in pcap_findalldevs()
572 dstaddr, addr_size, errbuf) < 0) in pcap_findalldevs()
/external/libpcap/tests/
Dfindalldevstest.c82 if (a->dstaddr) in ifprint()
84 inet_ntoa(((struct sockaddr_in *)(a->dstaddr))->sin_addr)); in ifprint()
104 if (a->dstaddr) in ifprint()
107 ((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/tcpdump/
Dprint-nfs.c165 char srcaddr[INET6_ADDRSTRLEN], dstaddr[INET6_ADDRSTRLEN]; in print_nfsaddr() local
170 char srcaddr[INET_ADDRSTRLEN], dstaddr[INET_ADDRSTRLEN]; in print_nfsaddr() local
173 srcaddr[0] = dstaddr[0] = '\0'; in print_nfsaddr()
178 strlcpy(dstaddr, ipaddr_string(&ip->ip_dst), sizeof(dstaddr)); in print_nfsaddr()
185 strlcpy(dstaddr, ip6addr_string(&ip6->ip6_dst), in print_nfsaddr()
186 sizeof(dstaddr)); in print_nfsaddr()
191 strlcpy(dstaddr, "?", sizeof(dstaddr)); in print_nfsaddr()
195 (void)printf("%s.%s > %s.%s: ", srcaddr, s, dstaddr, d); in print_nfsaddr()
/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/libpcap/pcap/
Dpcap.h234 struct sockaddr *dstaddr; /* P2P destination address for that address */ member
/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 …]
DDNSCommon.h251 const mDNSAddr *dstaddr, mDNSIPPort dstport, const DNSMessage *const msg, const mDNSu8 *const end);
DDNSCommon.c2541 const mDNSAddr *dstaddr, mDNSIPPort dstport, const DNSMessage *const msg, const mDNSu8 *const end) in DumpPacket() argument
2552 if (dstaddr || !mDNSIPPortIsZero(dstport)) in DumpPacket()
2553 dbuffer[mDNS_snprintf(dbuffer, sizeof(dbuffer), " to %#a:%d", dstaddr, mDNSVal16(dstport))] = 0; in DumpPacket()
DmDNSEmbeddedAPI.h2704 const mDNSAddr *dstaddr, const mDNSIPPort dstport, const mDNSInterfaceID InterfaceID);
/external/mdnsresponder/mDNSShared/
Ddnsextd.c3105 … const mDNSAddr *const dstaddr, const mDNSIPPort dstport, const mDNSInterfaceID iid) in mDNSCoreReceive() argument
3106 …{ ( void ) m; ( void ) msg; ( void ) end; ( void ) srcaddr; ( void ) srcport; ( void ) dstaddr; ( … in mDNSCoreReceive()