D | xfrm_test.py | 213 myaddr = self.MyAddress(4, netid) 221 encap_sock.bind((myaddr, 0)) 230 return netid, myaddr, remoteaddr, encap_sock, encap_port, s 233 def _SetupUdpEncapSaPair(self, myaddr, remoteaddr, in_spi, out_spi, argument 241 self.CreateNewSa(myaddr, remoteaddr, out_spi, out_reqid, encaptmpl, 246 self.CreateNewSa(remoteaddr, myaddr, in_spi, in_reqid, encaptmpl, 263 def _VerifyUdpEncapSocket(self, netid, remoteaddr, myaddr, encap_port, sock, argument 303 incoming = (scapy.IP(src=remoteaddr, dst=myaddr) / 327 scapy.IP(src=remoteaddr, dst=myaddr) / scapy.UDP( 332 netid, myaddr, remoteaddr, encap_sock, encap_port, s = \ [all …]
|