Lines Matching refs:self
33 def ForwardBetweenInterfaces(self, enabled, iface1, iface2): argument
35 self.iproute.IifRule(6, enabled, self.GetInterfaceName(iif),
36 self._TableForNetid(oif), self.PRIORITY_IIF)
38 def setUp(self): argument
39 self.SetSysctl("/proc/sys/net/ipv6/conf/all/forwarding", 1)
41 def tearDown(self): argument
42 self.SetSysctl("/proc/sys/net/ipv6/conf/all/forwarding", 0)
44 def CheckForwardingCrash(self, netid, iface1, iface2): argument
50 self.SetSocketMark(listensocket, netid)
53 remoteaddr = self.GetRemoteAddress(version)
54 myaddr = self.MyAddress(version, netid)
59 reply = self._ReceiveAndExpectResponse(netid, syn, synack, msg)
62 self.ReceivePacketOn(netid, establishing_ack)
68 self.ExpectPacketOn(netid, msg + ": expecting %s after close" % desc, fin)
71 self.ReceivePacketOn(netid, finack)
74 sockets = self.ReadProcNetSocket("tcp6")
79 self.assertEquals(1, len(sockets))
80 self.assertEquals("%02X" % self.TCP_TIME_WAIT, sockets[0][2])
84 self.iproute.DelAddress(myaddr, 64, self.ifindices[netid])
86 self.ReceivePacketOn(iface1, finack)
87 self.ReceivePacketOn(iface1, establishing_ack)
88 self.ReceivePacketOn(iface1, establishing_ack)
93 self.SendRA(netid)
96 def testCrash(self): argument
98 for netids in itertools.permutations(self.tuns):
101 self.ForwardBetweenInterfaces(True, iface1, iface2)
103 self.CheckForwardingCrash(netid, iface1, iface2)
105 self.ForwardBetweenInterfaces(False, iface1, iface2)