Lines Matching refs:version

103   def _TestSocketPolicy(self, version):  argument
105 family = net_test.GetAddressFamily(version)
110 remotesockaddr = self.GetRemoteSocketAddress(version)
114 if version == 5:
120 desc, pkt = packets.UDP(version, saddr, daddr, sport=sport)
126 xfrm_version = 4 if version == 5 else version
156 version, False,
163 remoteaddr2 = self.GetOtherRemoteSocketAddress(version)
177 protocol = packet.nh if version == 6 else packet.proto
442 def _TestSocketPolicyDstCache(self, version): argument
450 family = net_test.GetAddressFamily(version)
456 remote = self.GetRemoteAddress(version)
470 def _CheckNullEncryptionTunnelMode(self, version): argument
471 family = net_test.GetAddressFamily(version)
473 local_addr = self.MyAddress(version, netid)
474 remote_addr = self.GetRemoteAddress(version)
477 tun_local = self.MyAddress(version, self.RandomNetid(netid))
480 tun_remote = TUNNEL_ENDPOINTS[version]
507 IpType = {4: scapy.IP, 6: scapy.IPv6}[version]
539 for version in [4, 6]:
540 self._CheckNullEncryptionTunnelMode(version)
542 def _CheckNullEncryptionTransportMode(self, version): argument
543 family = net_test.GetAddressFamily(version)
545 local_addr = self.MyAddress(version, netid)
546 remote_addr = self.GetRemoteAddress(version)
571 IpType = {4: scapy.IP, 6: scapy.IPv6}[version]
602 for version in [4, 6]:
603 self._CheckNullEncryptionTransportMode(version)
605 def _CheckGlobalPoliciesByMark(self, version): argument
607 family = net_test.GetAddressFamily(version)
629 def _CheckUpdatePolicy(self, version): argument
631 family = net_test.GetAddressFamily(version)
664 def _CheckPolicyDifferByDirection(self,version): argument
666 family = net_test.GetAddressFamily(version)
683 def _CheckTunnelModeOutputMark(self, version, tunsrc, mark, expected_netid): argument
699 family = net_test.GetAddressFamily(version)
705 tundst = TUNNEL_ENDPOINTS[version]
720 remoteaddr = self.GetRemoteAddress(version)
722 packetlen = xfrm_base.GetEspPacketLength(xfrm.XFRM_MODE_TUNNEL, version,
785 for version in [4, 6]:
788 new_sa = self.xfrm.AllocSpi(net_test.GetWildcardAddress(version),
791 self.xfrm.AddSaInfo(net_test.GetWildcardAddress(version),
792 net_test.GetWildcardAddress(version),
801 self.xfrm.DeleteSaInfo(net_test.GetWildcardAddress(version),
816 for version in [4, 6]:
817 family = net_test.GetAddressFamily(version)
819 remote = self.GetRemoteAddress(version)
820 local = self.MyAddress(version, netid)
843 version, False,