/kernel/tests/net/test/ |
D | ping6_test.py | 264 def assertValidPingResponse(self, s, data): argument 265 family = s.family 268 rcvd, src = s.recvfrom(32768) 284 self.fail("Unknown socket address family %d" * s.family) 336 s = net_test.IPv4PingSocket() 337 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING) 340 s = net_test.IPv6PingSocket() 341 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING) 344 s = net_test.IPv4PingSocket() 345 s.connect(("127.0.0.1", 55)) [all …]
|
D | csocket_test.py | 32 s = socket(family, SOCK_DGRAM, 0) 33 s.bind((addr, 0)) 34 return s 37 s = self._BuildSocket(family, addr) 38 addr = s.getsockname() 40 s.sendto("foo", addr) 41 data, addr = csocket.Recvfrom(s, 4096, 0) 45 s.close() 52 s = self._BuildSocket(family, addr) 55 s.setsockopt(SOL_IP, csocket.IP_PKTINFO, 1) [all …]
|
D | leak_test.py | 30 s = socket(AF_INET6, SOCK_DGRAM, 0) 31 s.bind(("::1", 0)) 34 csocket.SetSocketTimeout(s, 2000) 37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR) 45 data, addr = csocket.Recvfrom(s, 4096) 56 s = socket(AF_INET6, SOCK_DGRAM, 0) 59 s.setsockopt(SOL_SOCKET, option, 0) 60 minbuf = s.getsockopt(SOL_SOCKET, option) 65 s.setsockopt(SOL_SOCKET, force_option, val) 66 self.assertEquals(2 * val, s.getsockopt(SOL_SOCKET, option)) [all …]
|
D | sock_diag_test.py | 64 s = socket(AF_INET6, SOCK_DGRAM, 0) 65 s.bind(("::", 0)) 66 s.connect((s.getsockname())) 69 s.close() 76 s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP) 77 s.close() 132 def assertSockInfoMatchesSocket(self, s, info): argument 134 family = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_DOMAIN) 137 src, sport = s.getsockname()[0:2] 142 dst, dport = s.getpeername()[0:2] [all …]
|
D | tcp_fastopen_test.py | 41 s = net_test.TCPSocket(net_test.GetAddressFamily(version)) 42 net_test.DisableFinWait(s) 43 self.SelectInterface(s, netid, "mark") 44 s.setsockopt(IPPROTO_TCP, TCP_FASTOPEN_CONNECT, 1) 45 return s 69 s = self.TFOClientSocket(version, netid) 76 s.connect((remoteaddr, 53)) 77 self.assertSocketNotConnected(s) 81 port = s.getsockname()[1] 99 self.assertSocketConnected(s) [all …]
|
D | net_test.py | 116 def SetSocketTos(s, tos): argument 117 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family] 118 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family] 119 s.setsockopt(level, option, tos) 129 s = socket(family, sock_type, protocol) 130 csocket.SetSocketTimeout(s, 5000) 131 return s 148 s = Socket(family, SOCK_STREAM, IPPROTO_TCP) 149 SetNonBlocking(s.fileno()) 150 return s [all …]
|
D | multinetwork_test.py | 58 s = self.BuildSocket(version, net_test.PingSocket, netid, routing_mode) 62 s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) 63 s.bind((mysockaddr, packets.PING_IDENT)) 64 net_test.SetSocketTos(s, packets.PING_TOS) 72 s.sendto(packet + packets.PING_PAYLOAD, (dstsockaddr, 19321)) 77 s = self.BuildSocket(version, net_test.TCPSocket, netid, routing_mode) 87 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstsockaddr, 53)) 91 s.close() 94 s = self.BuildSocket(version, net_test.UDPSocket, netid, routing_mode) 104 s.sendto(UDP_PAYLOAD, (dstsockaddr, 53)) [all …]
|
D | build_all_rootfs.sh | 20 for s in wheezy stretch; do 24 [[ "${s}-${a}" != "wheezy-arm64" ]] || continue 26 ./build_rootfs.sh -s "${s}" -a "${a}"
|
D | xfrm_test.py | 106 s = socket(family, SOCK_DGRAM, 0) 108 self.SelectInterface(s, netid, "mark") 111 s.connect((remotesockaddr, 53)) 112 saddr, sport = s.getsockname()[:2] 113 daddr, dport = s.getpeername()[:2] 121 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53)) 128 xfrm_base.ApplySocketPolicy(s, xfrm_family, xfrm.XFRM_POLICY_OUT, 136 s.sendto, net_test.UDP_PAYLOAD, (remotesockaddr, 53)) 154 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53)) 166 s.sendto, net_test.UDP_PAYLOAD, (remoteaddr2, 53)) [all …]
|
D | csocket.py | 96 s = ms / 1000 99 struct.pack("LL", s, us)) 102 def VoidPointer(s): argument 103 return ctypes.cast(s.CPointer(), ctypes.c_void_p) 204 def Bind(s, to): argument 206 ret = libc.bind(s.fileno(), VoidPointer(to), len(to)) 211 def Connect(s, to): argument 213 ret = libc.connect(s.fileno(), VoidPointer(to), len(to)) 218 def Sendmsg(s, to, data, control, flags): argument 273 ret = libc.sendmsg(s.fileno(), msghdr, 0) [all …]
|
D | forwarding_test.py | 60 s = net_test.UDPSocket(AF_INET6) 61 self.SetSocketMark(s, netid) 62 s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) 63 s.bind(("::", 53)) 83 s.close() 128 sockets = [s for s in sockets if s[0] == mysrc and s[1] == mydst]
|
D | policy_crash_test.py | 128 s = socket.socket(socket.AF_INET6, socket.SOCK_RAW, socket.IPPROTO_RAW) 129 s.sendto(pkt1.decode('hex'), ('::1', 0)) 130 s.sendto(pkt2.decode('hex'), ('::1', 0)) 131 s.close()
|
D | sock_diag.py | 353 def DiagReqFromSocket(s): argument 355 family = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_DOMAIN) 356 protocol = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_PROTOCOL) 358 iface = s.getsockopt(SOL_SOCKET, net_test.SO_BINDTODEVICE, 363 src, sport = s.getsockname()[:2] 365 dst, dport = s.getpeername()[:2] 378 def GetSocketCookie(s): argument 379 cookie = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_COOKIE, 8) 382 def FindSockInfoFromFd(self, s): argument 384 req = self.DiagReqFromSocket(s) [all …]
|
D | anycast_test.py | 69 def AnycastSetsockopt(self, s, is_add, netid, addr): argument 74 s.setsockopt(IPPROTO_IPV6, option, ipv6mreq.Pack()) 84 s = socket(AF_INET6, SOCK_DGRAM, 0) 90 self.AnycastSetsockopt(s, True, netid, addr) 112 self.AnycastSetsockopt(s, False, netid, addr)
|
D | qtaguid_test.py | 85 s = socket(family, SOCK_DGRAM, 0) 87 s.bind((addr, 0)) 88 addr = s.getsockname() 89 self.assertRaisesErrno(errno.EPERM, s.sendto, "foo", addr) 91 s.sendto("foo", addr) 92 data, sockaddr = s.recvfrom(4096) 102 s = socket(family, SOCK_DGRAM, 0) 104 s.bind((addr1, 0)) 105 addr1 = s.getsockname() 106 s.sendto("foo", addr1) [all …]
|
D | pf_key_test.py | 53 state4, attrs4 = [(s, a) for s, a in sainfos if s.family == AF_INET][0] 54 state6, attrs6 = [(s, a) for s, a in sainfos if s.family == AF_INET6][0]
|
D | tcp_test.py | 45 self.s.close() 51 s = net_test.Socket(family, SOCK_STREAM, IPPROTO_TCP) 53 self.SelectInterface(s, netid, "mark") 54 self.port = net_test.BindRandomPort(version, s) 55 return s 85 self.s = self.OpenListenSocket(version, netid) 113 self.accepted, _ = self.s.accept()
|
D | multinetwork_base.py | 445 def SetSocketMark(self, s, netid): argument 448 s.setsockopt(SOL_SOCKET, net_test.SO_MARK, netid) 450 def GetSocketMark(self, s): argument 451 return s.getsockopt(SOL_SOCKET, net_test.SO_MARK) 453 def ClearSocketMark(self, s): argument 454 self.SetSocketMark(s, 0) 456 def BindToDevice(self, s, iface): argument 459 s.setsockopt(SOL_SOCKET, SO_BINDTODEVICE, iface) 461 def SetUnicastInterface(self, s, ifindex): argument 467 s.setsockopt(net_test.SOL_IP, IP_UNICAST_IF, ifindex) [all …]
|
D | neighbour_test.py | 199 s = self.BuildSocket(6, net_test.UDPSocket, self.netid, routing_mode) 200 s.connect((net_test.IPV6_ADDR, 53)) 201 s.send(net_test.UDP_PAYLOAD) 226 s.send(net_test.UDP_PAYLOAD) 281 s = self.BuildSocket(6, net_test.UDPSocket, self.netid, routing_mode) 282 s.connect((net_test.IPV6_ADDR, 53)) 283 s.send(net_test.UDP_PAYLOAD)
|
D | srcaddr_selection_test.py | 76 s = self.BuildSocket(6, net_test.UDPSocket, netid, mode) 78 s.setsockopt(IPPROTO_IPV6, IPV6_ADDR_PREFERENCES, IPV6_PREFER_SRC_PUBLIC) 80 s.connect((net_test.IPV6_ADDR, 123)) 81 src_addr = s.getsockname()[0] 102 s = net_test.UDPSocket(AF_INET6) 103 s.bind((address, 0, 0, 0)) 108 s = self.BuildSocket(6, net_test.UDPSocket, netid, "mark") 109 return csocket.Sendmsg(s, (dest, 53), "Hello", cmsgs, 0)
|
D | tcp_repair_test.py | 72 s = net_test.TCPSocket(net_test.GetAddressFamily(version)) 73 net_test.DisableFinWait(s) 74 self.SelectInterface(s, netid, "mark") 78 self.assertRaisesErrno(EINPROGRESS, s.connect, (remotesockaddr, TEST_PORT)) 79 self.assertSocketNotConnected(s) 82 port = s.getsockname()[1] 97 return s
|
D | netlink.py | 68 def _Debug(self, s): argument 70 print s
|
D | README | 67 since the filesystem contains a full Linux userland, it's possible to boot into
|
/kernel/configs/ |
D | README.md | 6 basing the kernel configuration off of a particular defconfig. The platform’s 20 with a platform defconfig using the kernel's make rules or using the 23 ## How are Android's kernel configs stored? 29 that enhance Android’s functionality in some way but are not required for it to 105 essential to AOSP’s overall functionality). All configs on the supported
|
/kernel/build/abi/ |
D | README.md | 48 that affect the Kernel's module interface.
|