Lines Matching refs:version

408     for version in [4, 5, 6]:
409 family = net_test.GetAddressFamily(version)
412 s.connect((self.GetRemoteSocketAddress(version), 53))
568 def checkInitRwndSize(self, version, netid): argument
569 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, netid)
574 "Expect: %d, actual: %d" % (netid, version, self.RWND_SIZE,
577 def checkSynPacketWindowSize(self, version, netid): argument
578 s = self.BuildSocket(version, net_test.TCPSocket, netid, "mark")
579 myaddr = self.MyAddress(version, netid)
580 dstaddr = self.GetRemoteAddress(version)
581 dstsockaddr = self.GetRemoteSocketAddress(version)
582 desc, expected = packets.SYN(53, version, myaddr, dstaddr,
586 version, desc, self.GetInterfaceName(netid))
592 for version in [4, 5, 6]:
594 self.checkInitRwndSize(version, netid)
595 self.checkSynPacketWindowSize(version, netid)
626 for version in [4, 5, 6]:
627 msg = "Closing incoming IPv%d %s socket" % (version, statename)
628 self.IncomingConnection(version, state, self.netid)
631 msg = "Closing accepted IPv%d %s socket" % (version, statename)
641 for version in [4, 5, 6]:
642 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, self.netid)
666 finversion = 4 if version == 5 else version
697 def CheckChildSocket(self, version, statename, parent_first): argument
700 self.IncomingConnection(version, state, self.netid)
726 version, statename, "before" if parent_first else "after")
737 version, statename, "after" if parent_first else "before")
760 for version in [4, 5, 6]:
761 self.CheckChildSocket(version, "TCP_SYN_RECV", False)
762 self.CheckChildSocket(version, "TCP_SYN_RECV", True)
763 self.CheckChildSocket(version, "TCP_NOT_YET_ACCEPTED", False)
764 self.CheckChildSocket(version, "TCP_NOT_YET_ACCEPTED", True)
768 for version in [4, 5, 6]:
769 self.IncomingConnection(version, tcp_test.TCP_LISTEN, self.netid)
779 for version in [4, 5, 6]:
780 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, self.netid)
790 for version in [4, 5, 6]:
791 family = {4: AF_INET, 5: AF_INET6, 6: AF_INET6}[version]
795 remotesockaddr = self.GetRemoteSocketAddress(version)
796 remoteaddr = self.GetRemoteAddress(version)
801 desc, syn = packets.SYN(53, version, self.MyAddress(version, self.netid),
860 for version in [4, 5, 6]:
861 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, self.netid)
870 for version in [4, 5, 6]:
871 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, self.netid)
945 for version in 4, 5, 6:
947 dst = self.GetRemoteSocketAddress(version)
948 family = {4: AF_INET, 5: AF_INET6, 6: AF_INET6}[version]
949 unspec = {4: "0.0.0.0", 5: "::", 6: "::"}[version]
953 s = self.BuildSocket(version, net_test.UDPSocket, netid, "mark")
960 s = self.BuildSocket(version, net_test.UDPSocket, netid, "mark")
961 src = self.MySocketAddress(version, netid)
969 s = self.BuildSocket(version, net_test.UDPSocket, netid, "mark")
976 s = self.BuildSocket(version, net_test.UDPSocket, netid, "mark")
977 src = self.MySocketAddress(version, netid)
984 for version in [4, 5, 6]:
985 family = {4: AF_INET, 5: AF_INET6, 6: AF_INET6}[version]
988 addr = self.GetRemoteSocketAddress(version)