HomeSort by relevance Sort by last modified time
    Searched refs:dstaddr (Results 1 - 25 of 30) sorted by null

1 2

  /system/extras/tests/net_test/
packets.py 56 def UDP(version, srcaddr, dstaddr, sport=0):
62 ip(src=srcaddr, dst=dstaddr) /
65 def UDPWithOptions(version, srcaddr, dstaddr, sport=0):
67 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=39, tos=0x83) /
71 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr,
77 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=TCP_SEQ):
82 ip(src=srcaddr, dst=dstaddr) /
87 def RST(version, srcaddr, dstaddr, packet):
92 ip(src=srcaddr, dst=dstaddr) /
97 def SYNACK(version, srcaddr, dstaddr, packet)
    [all...]
multinetwork_test.py 94 def CheckPingPacket(self, version, netid, routing_mode, dstaddr, packet):
102 desc, expected = packets.ICMPEcho(version, myaddr, dstaddr)
106 s.sendto(packet + packets.PING_PAYLOAD, (dstaddr, 19321))
110 def CheckTCPSYNPacket(self, version, netid, routing_mode, dstaddr):
113 if version == 6 and dstaddr.startswith("::ffff"):
116 desc, expected = packets.SYN(53, version, myaddr, dstaddr,
120 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstaddr, 53))
126 def CheckUDPPacket(self, version, netid, routing_mode, dstaddr):
129 if version == 6 and dstaddr.startswith("::ffff"):
132 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None
    [all...]
neighbour_test.py 143 def ReceiveUnicastAdvertisement(self, addr, mac, srcaddr=None, dstaddr=None,
148 if dstaddr is None:
149 dstaddr = self.MyLinkLocalAddress(self.netid)
153 scapy.IPv6(src=srcaddr, dst=dstaddr) /
288 dstaddr=self.MyAddress(6, self.netid),
multinetwork_base.py 459 def SendOnNetid(self, version, s, dstaddr, dstport, netid, payload, cmsgs):
466 csocket.Sendmsg(s, (dstaddr, dstport), payload, cmsgs, csocket.MSG_CONFIRM)
ping6_test.py 256 def CheckSockStatFile(self, name, srcaddr, srcport, dstaddr, dstport, state,
259 "%s:%04X" % (net_test.FormatSockStatAddress(dstaddr), dstport),
  /external/toybox/toys/pending/
tftpd.c 77 static void send_errpkt(struct sockaddr *dstaddr,
83 if (sendto(TT.sfd, g_errpkt, strlen(errmsg)+5, 0, dstaddr, socklen) < 0)
88 static void do_action(struct sockaddr *srcaddr, struct sockaddr *dstaddr,
109 send_errpkt(dstaddr, socklen, "can't open file");
150 send_errpkt(dstaddr, socklen, "read-error");
160 if (sendto(TT.sfd, spkt, (ptr - spkt), 0, dstaddr, socklen) <0)
180 send_errpkt(dstaddr, socklen, "read-error");
218 send_errpkt(dstaddr, socklen, "write error");
240 struct sockaddr_storage srcaddr, dstaddr; local
250 recvmsg_len = recvfrom(fd, toybuf, blksize, 0, (void *)&dstaddr, &socklen)
    [all...]
  /external/libpcap/
fad-getad.c 151 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
218 dstaddr = ifa->ifa_dstaddr;
221 dstaddr = NULL;
259 broadaddr, broadaddr_size, dstaddr, dstaddr_size,
fad-gifc.c 148 struct sockaddr *netmask, *broadaddr, *dstaddr; local
338 dstaddr = NULL;
350 dstaddr = &ifrdstaddr.ifr_dstaddr;
351 dstaddr_size = SA_LEN(dstaddr);
358 dstaddr = NULL;
396 broadaddr, broadaddr_size, dstaddr, dstaddr_size,
fad-glifc.c 91 struct sockaddr *netmask, *broadaddr, *dstaddr; local
297 dstaddr = NULL;
308 dstaddr = (struct sockaddr *)&ifrdstaddr.lifr_dstaddr;
310 dstaddr = NULL;
348 dstaddr, sizeof (struct sockaddr_storage), errbuf) < 0) {
inet.c 604 struct sockaddr *dstaddr, size_t dstaddr_size,
644 netmask_size, broadaddr, broadaddr_size, dstaddr,
659 struct sockaddr *dstaddr, size_t dstaddr_size,
711 if (dstaddr != NULL) {
712 curaddr->dstaddr = dup_sockaddr(dstaddr, dstaddr_size);
713 if (curaddr->dstaddr == NULL) {
726 curaddr->dstaddr = NULL;
808 if (curaddr->dstaddr)
809 free(curaddr->dstaddr);
    [all...]
pcap-sita.c 106 printf("%15s ", (addr->dstaddr) ? inet_ntoa(((struct sockaddr_in *)addr->dstaddr)->sin_addr) : "");
134 printf(" %p %p %p %p, next: %p\n", addr->addr, addr->netmask, addr->broadaddr, addr->dstaddr, addr->next);
394 if (addr->dstaddr) free(addr->dstaddr);
674 addr->dstaddr = (struct sockaddr *)s;
    [all...]
pcap-int.h 423 struct sockaddr *dstaddr, size_t, char *errbuf);
pcap-dos.c 535 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
558 dstaddr = (struct sockaddr*) &sa_ll_1;
570 dstaddr, addr_size, errbuf) < 0)
    [all...]
pcap-snf.c 406 curaddr->dstaddr = NULL;
  /external/libpcap/tests/
findalldevstest.c 87 if (a->dstaddr)
89 inet_ntoa(((struct sockaddr_in *)(a->dstaddr))->sin_addr));
109 if (a->dstaddr)
112 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr,
  /external/mdnsresponder/mDNSPosix/
NetMonitor.c 474 mDNSlocal void DisplayPacketHeader(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end, const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterfaceID InterfaceID)
493 if (!mDNSAddrIsDNSMulticast(dstaddr)) mprintf(" To: %#a", dstaddr);
610 const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterfaceID InterfaceID)
619 DisplayPacketHeader(m, msg, end, srcaddr, srcport, dstaddr, InterfaceID);
689 const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, const mDNSInterfaceID InterfaceID)
696 DisplayPacketHeader(m, msg, end, srcaddr, srcport, dstaddr, InterfaceID);
705 if (mDNSAddrIsDNSMulticast(dstaddr))
779 const mDNSAddr *srcaddr, mDNSIPPort srcport, const mDNSAddr *dstaddr, mDNSIPPort dstport, const mDNSInterfaceID InterfaceID)
787 (void)dstaddr; // Unuse
    [all...]
Identify.c 94 const mDNSAddr *const srcaddr, const mDNSIPPort srcport, const mDNSAddr *const dstaddr, const mDNSIPPort dstport,
97 (void)dstaddr; // Unused
  /external/tcpdump/
print-nfs.c 209 char srcaddr[INET6_ADDRSTRLEN], dstaddr[INET6_ADDRSTRLEN]; local
214 char srcaddr[INET_ADDRSTRLEN], dstaddr[INET_ADDRSTRLEN]; local
217 srcaddr[0] = dstaddr[0] = '\0';
222 strlcpy(dstaddr, ipaddr_string(ndo, &ip->ip_dst), sizeof(dstaddr));
229 strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst),
230 sizeof(dstaddr));
235 strlcpy(dstaddr, "?", sizeof(dstaddr));
239 ND_PRINT((ndo, "%s.%s > %s.%s: ", srcaddr, s, dstaddr, d))
    [all...]
  /external/curl/packages/OS400/
os400sys.c 1202 convert_sockaddr(struct sockaddr_storage * dstaddr,
1214 sizeof srcaddr->sa_family || srclen > sizeof *dstaddr) {
1219 memcpy((char *) dstaddr, (char *) srcaddr, srclen);
1225 dstu = (struct sockaddr_un *) dstaddr;
1226 dstsize = sizeof *dstaddr - offsetof(struct sockaddr_un, sun_path);
1272 struct sockaddr * dstaddr, int addrlen)
1278 i = convert_sockaddr(&laddr, dstaddr, addrlen);
  /external/curl/lib/
setup-os400.h 206 struct sockaddr * dstaddr, int addrlen);
  /external/libpcap/pcap/
pcap.h 234 struct sockaddr *dstaddr; /* P2P destination address for that address */ member in struct:pcap_addr
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/X11/
Xlibint.h 735 #define OneDataCard32(dpy,dstaddr,srcvar) \
741 #define OneDataCard32(dpy,dstaddr,srcvar) \
742 { *(CARD32 *)(dstaddr) = (srcvar); }
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/
Xlibint.h 699 #define OneDataCard32(dpy,dstaddr,srcvar) \
705 #define OneDataCard32(dpy,dstaddr,srcvar) \
706 { *(CARD32 *)(dstaddr) = (srcvar); }
    [all...]
  /external/mdnsresponder/mDNSCore/
DNSCommon.h 251 const mDNSAddr *dstaddr, mDNSIPPort dstport, const DNSMessage *const msg, const mDNSu8 *const end);
mDNS.c     [all...]

Completed in 549 milliseconds

1 2