Lines Matching refs:spi
292 def UserTemplate(family, spi, reqid, tun_addrs): argument
315 xfrmid = XfrmId(daddr=daddr, spi=spi, proto=IPPROTO_ESP)
493 def AddSaInfo(self, src, dst, spi, mode, reqid, encryption, auth_trunc, aead, argument
516 xfrm_id = XfrmId((PaddedAddress(dst), spi, proto))
572 def DeleteSaInfo(self, dst, spi, proto, mark=None, xfrm_if_id=None): argument
584 usersa_id = XfrmUsersaId((PaddedAddress(dst), spi, family, proto))
605 spi = XfrmUserSpiInfo("\x00" * len(XfrmUserSpiInfo))
606 spi.min = min_spi
607 spi.max = max_spi
608 spi.info.id.daddr = PaddedAddress(dst)
609 spi.info.id.proto = proto
610 spi.info.family = AF_INET6 if ":" in dst else AF_INET
612 msg = spi.Pack()
631 def FindSaInfo(self, spi): argument
632 sainfo = [sa for sa, attrs in self.DumpSaInfo() if sa.id.spi == spi]
645 def CreateTunnel(self, direction, selector, src, dst, spi, encryption, argument
681 tmpl_spi = spi
693 self.AddSaInfo(src, dst, spi, XFRM_MODE_TUNNEL, 0, encryption, auth_trunc,
706 def DeleteTunnel(self, direction, selector, dst, spi, mark, xfrm_if_id): argument
710 self.DeleteSaInfo(dst, spi, IPPROTO_ESP, mark, xfrm_if_id)
719 new_saddr, new_daddr, spi, argument
761 self.AddSaInfo(new_saddr, new_daddr, spi, XFRM_MODE_TUNNEL, 0, encryption,