Home
last modified time | relevance | path

Searched refs:version (Results 1 – 25 of 27) sorted by relevance

12

/kernel/tests/net/test/
Dtcp_repair_test.py71 def createConnectedSocket(self, version, netid): argument
72 s = net_test.TCPSocket(net_test.GetAddressFamily(version))
76 remotesockaddr = self.GetRemoteSocketAddress(version)
77 remoteaddr = self.GetRemoteAddress(version)
81 myaddr = self.MyAddress(version, netid)
85 desc, expect_syn = packets.SYN(TEST_PORT, version, myaddr, remoteaddr, port, seq=None)
88 synack_desc, synack = packets.SYNACK(version, remoteaddr, myaddr, syn)
92 desc, ack = packets.ACK(version, myaddr, remoteaddr, synack)
99 def receiveFin(self, netid, version, sock): argument
101 remoteaddr = self.GetRemoteAddress(version)
[all …]
Dtcp_test.py48 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)
[all …]
Dtcp_fastopen_test.py40 def TFOClientSocket(self, version, netid): argument
41 s = net_test.TCPSocket(net_test.GetAddressFamily(version))
53 def clearTcpMetrics(self, version, netid): argument
54 saddr = self.MyAddress(version, netid)
55 daddr = self.GetRemoteAddress(version)
60 def assertNoTcpMetrics(self, version, netid): argument
61 saddr = self.MyAddress(version, netid)
62 daddr = self.GetRemoteAddress(version)
66 def CheckConnectOption(self, version): argument
67 ip_layer = {4: scapy.IP, 6: scapy.IPv6}[version]
[all …]
Dpackets.py46 def _GetIpLayer(version): argument
47 return {4: scapy.IP, 5: scapy.IP, 6: scapy.IPv6}[version]
57 def UDP(version, srcaddr, dstaddr, sport=0): argument
58 ip = _GetIpLayer(version)
62 return ("UDPv%d packet" % version,
66 def UDPWithOptions(version, srcaddr, dstaddr, sport=0, lifetime=39): argument
67 if version == 4:
76 return ("UDPv%d packet with options" % version, packet)
78 def SYN(dport, version, srcaddr, dstaddr, sport=0, seq=-1): argument
79 ip = _GetIpLayer(version)
[all …]
Dqtaguid_test.py60 def SetIptablesRule(self, version, is_add, is_gid, my_id, inverted): argument
67 self.assertFalse(net_test.RunIptablesCommand(version, args))
69 def AddIptablesRule(self, version, is_gid, myId): argument
70 self.SetIptablesRule(version, True, is_gid, myId, False)
72 def AddIptablesInvertedRule(self, version, is_gid, myId): argument
73 self.SetIptablesRule(version, True, is_gid, myId, True)
75 def DelIptablesRule(self, version, is_gid, myId): argument
76 self.SetIptablesRule(version, False, is_gid, myId, False)
78 def DelIptablesInvertedRule(self, version, is_gid, myId): argument
79 self.SetIptablesRule(version, False, is_gid, myId, True)
[all …]
Dmultinetwork_base.py66 def MakePktInfo(version, addr, ifindex): argument
67 family = {4: AF_INET, 6: AF_INET6}[version]
69 addr = {4: "0.0.0.0", 6: "::"}[version]
72 if version == 6:
159 def _RouterAddress(netid, version): argument
160 if version == 6:
162 elif version == 4:
165 raise ValueError("Don't support IPv%s" % version)
176 def MyAddress(cls, version, netid): argument
179 6: cls._MyIPv6Address(netid)}[version]
[all …]
Dforwarding_test.py59 version = 6
65 remoteaddr = self.GetRemoteAddress(version)
66 myaddr = self.MyAddress(version, netid)
73 desc, udp_pkt = packets.UDPWithOptions(version, myaddr, remoteaddr, 53)
75 desc_fwded, udp_fwd = packets.UDPWithOptions(version, myaddr, remoteaddr,
98 version = 6
101 listenport = net_test.BindRandomPort(version, listensocket)
103 remoteaddr = self.GetRemoteAddress(version)
104 myaddr = self.MyAddress(version, netid)
106 desc, syn = packets.SYN(listenport, version, remoteaddr, myaddr)
[all …]
Dxfrm_test.py103 def _TestSocketPolicy(self, version): argument
105 family = net_test.GetAddressFamily(version)
110 remotesockaddr = self.GetRemoteSocketAddress(version)
114 if version == 5:
120 desc, pkt = packets.UDP(version, saddr, daddr, sport=sport)
126 xfrm_version = 4 if version == 5 else version
156 version, False,
163 remoteaddr2 = self.GetOtherRemoteSocketAddress(version)
177 protocol = packet.nh if version == 6 else packet.proto
442 def _TestSocketPolicyDstCache(self, version): argument
[all …]
Dsock_diag_test.py408 for version in [4, 5, 6]:
409 family = net_test.GetAddressFamily(version)
412 s.connect((self.GetRemoteSocketAddress(version), 53))
568 def checkInitRwndSize(self, version, netid): argument
569 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, netid)
574 "Expect: %d, actual: %d" % (netid, version, self.RWND_SIZE,
577 def checkSynPacketWindowSize(self, version, netid): argument
578 s = self.BuildSocket(version, net_test.TCPSocket, netid, "mark")
579 myaddr = self.MyAddress(version, netid)
580 dstaddr = self.GetRemoteAddress(version)
[all …]
Dnet_test.py97 def GetWildcardAddress(version): argument
98 return {4: "0.0.0.0", 6: "::"}[version]
100 def GetIpHdrLength(version): argument
101 return {4: 20, 6: 40}[version]
103 def GetAddressFamily(version): argument
104 return {4: AF_INET, 5: AF_INET6, 6: AF_INET6}[version]
107 def AddressLengthBits(version): argument
108 return {4: 32, 6: 128}[version]
171 def BindRandomPort(version, sock): argument
172 addr = {4: "0.0.0.0", 5: "::", 6: "::"}[version]
[all …]
Dnf_test.py48 def CheckRejectedTcp(self, version, addr): argument
49 sock = net_test.TCPSocket(net_test.GetAddressFamily(version))
67 def CheckRejectedUdp(self, version, addr): argument
68 sock = net_test.UDPSocket(net_test.GetAddressFamily(version))
Dgenetlink.py60 def _SendCommand(self, family, command, version, data, flags): argument
61 genlmsghdr = Genlmsghdr((command, version))
64 def _Dump(self, family, command, version): argument
65 msg = Genlmsghdr((command, version))
Dneighbour_test.py127 def ChangeRouterNudState(self, version, state): argument
128 router = self._RouterAddress(self.netid, version)
130 self.iproute.UpdateNeighbour(version, router, macaddr, self.ifindex, state)
135 version = csocket.AddressVersion(addr)
136 for msg, args in self.iproute.DumpNeighbours(version, ifindex):
162 version = csocket.AddressVersion(addr)
164 if version == 6:
198 version = csocket.AddressVersion(addr)
203 if version == 6:
215 version = csocket.AddressVersion(addr)
[all …]
Dtcp_metrics.py101 version = net_test.GetAddressVersion(address)
102 family = net_test.GetAddressFamily(version)
103 if version == 5:
106 "SADDR" if is_source else "ADDR", version)
Dxfrm_algorithm_test.py180 def TestNameGenerator(version, proto, authCase, cryptCase, aeadCase): argument
198 param_string += "%s_%s" % ("IPv4" if version == 4 else "IPv6",
202 def ParamTestSocketPolicySimple(self, version, proto, authCase, cryptCase, aeadCase): argument
232 family = net_test.GetAddressFamily(version)
233 local_addr = self.MyAddress(version, netid)
234 remote_addr = self.GetRemoteSocketAddress(version)
365 wildcard_addr = net_test.GetWildcardAddress(version)
Dcsocket.py84 version = re.search("^[0-9.]*", os.uname()[2]).group()
87 version = tuple(int(i) for i in version.split("."))
88 return version
Dbpf_test.py129 def SocketUDPLoopBack(packet_count, version, prog_fd): argument
130 family = {4: socket.AF_INET, 6: socket.AF_INET6}[version]
135 addr = {4: "127.0.0.1", 6: "::1"}[version]
433 def PacketCountByCookie(version): argument
434 self.sock = SocketUDPLoopBack(packet_count, version, self.prog_fd)
/kernel/configs/tools/
Dcheck_fragments.sh40 FRAGMENTS="$AFRAGS/$version/android-base.config \
41 $AFRAGS/$version/android-recommended.config"
42 if [ -f $AFRAGS/$version/android-base-$arch.config ]; then
43 FRAGMENTS="$FRAGMENTS $AFRAGS/$version/android-base-$arch.config"
45 if [ -f $AFRAGS/$version/android-recommended-$arch.config ]; then
46 FRAGMENTS="$FRAGMENTS $AFRAGS/$version/android-recommended-$arch.config"
57 for version in $KERNEL_VERSIONS; do
60 git checkout $version
Dfreeze.py55 for version in self.versions:
56 src = os.path.join(self.configs_dir, version)
57 dst = os.path.join(self.new_release_dir, version)
DAndroid.bp18 version: {
/kernel/tests/net/test/rootfs/
Dnet_test.sh31 mount -t 9p -o trans=virtio,version=9p2000.L host /host
/kernel/tests/devicetree/early_mount/
DAndroid.bp29 version: {
/kernel/tests/
DAndroid.bp31 version: {
/kernel/configs/
DREADME.md53 Kernel configs vary by kernel version, so there are sets of kernel configs for
54 each version of the kernel that Android supports.
80 version combination, it is necessary to review it and manually edit your
118 supported kernel version. These contain the kernel config requirements (and
142 This file lists all common kernel configuration requirements on kernel version
187 * Support a new kernel version by creating a new `<dessert>/android-x.y`
/kernel/configs/build/
Dkernel_config.go30 …Command: `${kconfigXmlFixupCmd} --input ${in} --output-version ${outputVersion} --output-matri…

12