Lines Matching refs:spi
55 def assertIsUdpEncapEsp(self, packet, spi, seq, length): argument
63 self.assertEqual(xfrm.EspHdr((spi, seq)), esp_hdr)
65 def CreateNewSa(self, localAddr, remoteAddr, spi, reqId, encap_tmpl, argument
69 self.xfrm.AddSaInfo(localAddr, remoteAddr, spi, xfrm.XFRM_MODE_TRANSPORT,
401 spi = 0xABCD
402 new_sa = self.xfrm.AllocSpi("::", IPPROTO_ESP, spi, spi)
403 self.assertEqual(spi, new_sa.id.spi)
407 spi = 0xABCD
408 new_sa = self.xfrm.AllocSpi("::", IPPROTO_ESP, spi, spi)
409 self.assertEqual(spi, new_sa.id.spi)
411 new_sa = self.xfrm.AllocSpi("::", IPPROTO_ESP, spi, spi)
416 spi = new_sa.id.spi
417 self.assertGreaterEqual(spi, start)
418 self.assertLessEqual(spi, end)
432 spi = new_sa.id.spi
433 self.assertNotIn(spi, spis)
434 spis.add(spi)
531 self.assertEqual(0xABCD, esp_hdr.spi)
594 self.assertEqual(0xABCD, esp_hdr.spi)
709 spi = TEST_SPI * mark
710 reqid = 100 + spi
711 self.xfrm.AddSaInfo(tunsrc, tundst, spi, xfrm.XFRM_MODE_TUNNEL, reqid,
716 xfrm_base.ApplySocketPolicy(s, family, xfrm.XFRM_POLICY_OUT, spi, reqid,
729 self._ExpectEspPacketOn(expected_netid, spi, 1, packetlen, tunsrc, tundst)
786 spi = 0xABCD
789 IPPROTO_ESP, spi, spi)
793 spi, xfrm.XFRM_MODE_TUNNEL, 0,
802 spi, IPPROTO_ESP, mark)