Lines Matching refs:version
48 def OpenListenSocket(self, version, netid): argument
49 family = {4: AF_INET, 5: AF_INET6, 6: AF_INET6}[version]
50 address = {4: "0.0.0.0", 5: "::", 6: "::"}[version]
54 self.port = net_test.BindRandomPort(version, s)
69 _, ack = packets.ACK(self.version, self.myaddr, self.remoteaddr,
71 desc, rst = packets.RST(self.version, self.remoteaddr, self.myaddr,
76 return packets.RST(self.version, self.myaddr, self.remoteaddr,
80 return packets.FIN(self.version, self.myaddr, self.remoteaddr,
84 def IncomingConnection(self, version, end_state, netid): argument
85 self.s = self.OpenListenSocket(version, netid)
88 remoteaddr = self.remoteaddr = self.GetRemoteAddress(version)
89 remotesockaddr = self.remotesockaddr = self.GetRemoteSocketAddress(version)
91 myaddr = self.myaddr = self.MyAddress(version, netid)
92 mysockaddr = self.mysockaddr = self.MySocketAddress(version, netid)
94 if version == 5: version = 4
95 self.version = version
100 desc, syn = packets.SYN(self.port, version, remoteaddr, myaddr)
101 synack_desc, synack = packets.SYNACK(version, myaddr, remoteaddr, syn)
107 establishing_ack = packets.ACK(version, remoteaddr, myaddr, reply)[1]
119 desc, data = packets.ACK(version, myaddr, remoteaddr, establishing_ack,
124 desc, fin = packets.FIN(version, remoteaddr, myaddr, data)
125 fin = packets._GetIpLayer(version)(str(fin))
126 ack_desc, ack = packets.ACK(version, myaddr, remoteaddr, fin)