Lines Matching refs:inner_version
88 def _GetNullAuthCryptTunnelModePkt(inner_version, src_inner, src_outer, argument
97 IpType = {4: scapy.IP, 6: scapy.IPv6}[inner_version]
149 def _CheckTunnelOutput(self, inner_version, outer_version, underlying_netid, argument
157 def _CheckTunnelInput(self, inner_version, outer_version, underlying_netid, argument
166 inner_version, remote_inner, remote_outer, _TEST_REMOTE_PORT,
175 def _TestTunnel(self, inner_version, outer_version, func, direction, argument
185 local_inner = self.MyAddress(inner_version, netid)
186 remote_inner = _GetRemoteInnerAddress(inner_version)
208 write_sock = socket(net_test.GetAddressFamily(inner_version), SOCK_DGRAM, 0)
210 read_sock, _ = _CreateReceiveSock(inner_version)
213 func(inner_version, outer_version, u_netid, netid, local_inner,
219 def ParamTestTunnelInput(self, inner_version, outer_version): argument
220 self._TestTunnel(inner_version, outer_version, self._CheckTunnelInput,
223 def ParamTestTunnelOutput(self, inner_version, outer_version): argument
224 self._TestTunnel(inner_version, outer_version, self._CheckTunnelOutput,
227 def ParamTestTunnelOutputNoSetMark(self, inner_version, outer_version): argument
228 self._TestTunnel(inner_version, outer_version, self._CheckTunnelOutput,
649 def _CheckTunnelInput(self, tunnel, inner_version, local_inner, remote_inner, argument
654 read_sock, local_port = _CreateReceiveSock(inner_version)
657 inner_version, remote_inner, tunnel.remote, _TEST_REMOTE_PORT,
670 def _CheckTunnelOutput(self, tunnel, inner_version, local_inner, argument
675 local_port = _SendPacket(self, tunnel.netid, inner_version, remote_inner,
688 if inner_version == 4:
697 inner_version, local_inner, tunnel.local, local_port, remote_inner,
711 def _CheckTunnelEncryption(self, tunnel, inner_version, local_inner, argument
719 src_port = _SendPacket(self, tunnel.netid, inner_version, remote_inner,
745 read_sock, local_port = _CreateReceiveSock(inner_version,
761 def _CheckTunnelIcmp(self, tunnel, inner_version, local_inner, remote_inner, argument
773 local_port = _SendPacket(self, tunnel.netid, inner_version, remote_inner,
795 def _CheckTunnelEncryptionWithIcmp(self, tunnel, inner_version, local_inner, argument
798 self._CheckTunnelEncryption(tunnel, inner_version, local_inner,
800 self._CheckTunnelIcmp(tunnel, inner_version, local_inner, remote_inner)
801 self._CheckTunnelEncryption(tunnel, inner_version, local_inner,
804 def _TestTunnel(self, inner_version, outer_version, func, use_null_crypt): argument
825 local_inner = tunnel.addrs[inner_version]
826 remote_inner = _GetRemoteInnerAddress(inner_version)
829 func(tunnel, inner_version, local_inner, remote_inner)
835 def _CheckTunnelRekey(self, tunnel, inner_version, local_inner, remote_inner): argument
840 self._CheckTunnelInput(tunnel, inner_version, local_inner, remote_inner,
842 self._CheckTunnelOutput(tunnel, inner_version, local_inner, remote_inner,
857 self._CheckTunnelInput(tunnel, inner_version, local_inner, remote_inner,
861 self._CheckTunnelInput(tunnel, inner_version, local_inner, remote_inner,
863 self._CheckTunnelOutput(tunnel, inner_version, local_inner, remote_inner,
870 self._CheckTunnelInput(tunnel, inner_version, local_inner, remote_inner,
872 self._CheckTunnelOutput(tunnel, inner_version, local_inner, remote_inner,
876 self._CheckTunnelInput(tunnel, inner_version, local_inner, remote_inner,
879 def _TestTunnelRekey(self, inner_version, outer_version): argument
888 local_inner = tunnel.addrs[inner_version]
889 remote_inner = _GetRemoteInnerAddress(inner_version)
891 self._CheckTunnelRekey(tunnel, inner_version, local_inner, remote_inner)
902 def ParamTestVtiInput(self, inner_version, outer_version): argument
903 self._TestTunnel(inner_version, outer_version, self._CheckTunnelInput, True)
905 def ParamTestVtiOutput(self, inner_version, outer_version): argument
906 self._TestTunnel(inner_version, outer_version, self._CheckTunnelOutput,
909 def ParamTestVtiInOutEncrypted(self, inner_version, outer_version): argument
910 self._TestTunnel(inner_version, outer_version, self._CheckTunnelEncryption,
913 def ParamTestVtiIcmp(self, inner_version, outer_version): argument
914 self._TestTunnel(inner_version, outer_version, self._CheckTunnelIcmp, False)
916 def ParamTestVtiEncryptionWithIcmp(self, inner_version, outer_version): argument
917 self._TestTunnel(inner_version, outer_version,
920 def ParamTestVtiRekey(self, inner_version, outer_version): argument
921 self._TestTunnelRekey(inner_version, outer_version)
929 def ParamTestXfrmIntfInput(self, inner_version, outer_version): argument
930 self._TestTunnel(inner_version, outer_version, self._CheckTunnelInput, True)
932 def ParamTestXfrmIntfOutput(self, inner_version, outer_version): argument
933 self._TestTunnel(inner_version, outer_version, self._CheckTunnelOutput,
936 def ParamTestXfrmIntfInOutEncrypted(self, inner_version, outer_version): argument
937 self._TestTunnel(inner_version, outer_version, self._CheckTunnelEncryption,
940 def ParamTestXfrmIntfIcmp(self, inner_version, outer_version): argument
941 self._TestTunnel(inner_version, outer_version, self._CheckTunnelIcmp, False)
943 def ParamTestXfrmIntfEncryptionWithIcmp(self, inner_version, outer_version): argument
944 self._TestTunnel(inner_version, outer_version,
947 def ParamTestXfrmIntfRekey(self, inner_version, outer_version): argument
948 self._TestTunnelRekey(inner_version, outer_version)