/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 | 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 | multinetwork_test.py | 60 s = self.BuildSocket(version, net_test.PingSocket, netid, routing_mode) 64 s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) 65 s.bind((mysockaddr, packets.PING_IDENT)) 66 net_test.SetSocketTos(s, packets.PING_TOS) 74 s.sendto(packet + packets.PING_PAYLOAD, (dstsockaddr, 19321)) 79 s = self.BuildSocket(version, net_test.TCPSocket, netid, routing_mode) 89 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstsockaddr, 53)) 93 s.close() 96 s = self.BuildSocket(version, net_test.UDPSocket, netid, routing_mode) 106 s.sendto(UDP_PAYLOAD, (dstsockaddr, 53)) [all …]
|
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 | net_test.py | 117 def SetSocketTos(s, tos): argument 118 level = {AF_INET: SOL_IP, AF_INET6: SOL_IPV6}[s.family] 119 option = {AF_INET: IP_TOS, AF_INET6: IPV6_TCLASS}[s.family] 120 s.setsockopt(level, option, tos) 130 s = socket(family, sock_type, protocol) 131 csocket.SetSocketTimeout(s, 5000) 132 return s 149 s = Socket(family, SOCK_STREAM, IPPROTO_TCP) 150 SetNonBlocking(s.fileno()) 151 return s [all …]
|
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 | csocket_test.py | 40 s = socket.socket(family, SOCK_DGRAM, 0) 41 s.bind((addr, 0)) 42 return s 45 s = self._BuildSocket(family, addr) 46 addr = s.getsockname() 48 s.sendto("foo", addr) 49 data, addr = csocket.Recvfrom(s, 4096, 0) 53 s.close() 60 s = self._BuildSocket(family, addr) 63 s.setsockopt(SOL_IP, csocket.IP_PKTINFO, 1) [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 | 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 | 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 | 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 | 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.assertEqual(2 * val, s.getsockopt(SOL_SOCKET, option)) [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 | srcaddr_selection_test.py | 79 s = self.BuildSocket(6, net_test.UDPSocket, netid, mode) 81 s.setsockopt(IPPROTO_IPV6, IPV6_ADDR_PREFERENCES, IPV6_PREFER_SRC_PUBLIC) 83 s.connect((net_test.IPV6_ADDR, 123)) 84 src_addr = s.getsockname()[0] 105 s = net_test.UDPSocket(AF_INET6) 106 s.bind((address, 0, 0, 0)) 111 s = self.BuildSocket(6, net_test.UDPSocket, netid, "mark") 112 return csocket.Sendmsg(s, (dest, 53), "Hello", cmsgs, 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 | 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 | namespace.py | 97 def SetFileContents(f, s): argument 98 open(f, 'w').write(s) 101 def SetHostname(s): argument 102 ret = libc.sethostname(s, len(s)) 105 raise OSError(errno, '%s while sethostname(%s)' % (os.strerror(errno), s))
|
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 | neighbour_test.py | 217 s = self.BuildSocket(version, net_test.UDPSocket, self.netid, routing_mode) 218 s.connect((addr, 53)) 219 s.send(net_test.UDP_PAYLOAD) 220 return s 257 s = self.SendDnsRequest(net_test.IPV6_ADDR) 282 s.send(net_test.UDP_PAYLOAD)
|
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 | 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 | build_all_rootfs.sh | 20 for s in bullseye; do 22 ./build_rootfs.sh -s "${s}" -a "${a}"
|
D | netlink.py | 68 def _Debug(self, s): argument 70 print(s)
|
/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 109 essential to AOSP’s overall functionality). All configs on the supported
|
/kernel/prebuilts/5.10/x86_64/ |
D | modules.builtin.modinfo | 1 …s credentials for accessesoverlay.parm=redirect_always_follow:Follow redirects even if redirect_d… 11 …s missing in RRQnf_conntrack_h323.parmtype=default_rrq_ttl:uintnf_conntrack_h323.description=H.3…
|