/kernel/tests/net/test/ |
D | ping6_test.py | 19 import errno 198 if e.errno == errno.EAGAIN: 337 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING) 341 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING) 428 self.assertRaisesErrno(errno.EAFNOSUPPORT, function, *args) 469 self.assertRaisesErrno(errno.EINVAL, s.bind, ("127.0.0.1", 22)) 488 self.assertRaisesErrno(errno.EAGAIN, s4.recv, 32768) 493 self.assertRaisesErrno(errno.EADDRINUSE, s6.bind, ("0.0.0.0", 167)) 498 self.assertRaisesErrno(errno.EINVAL, s.bind, ("0.0.0.0", 5429)) 512 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::1", 22)) [all …]
|
D | bpf_test.py | 18 import errno 246 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key) 253 self.assertRaisesErrno(errno.ENOENT, GetNextKey, self.map_fd, key) 270 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, 101) 289 self.assertRaisesErrno(errno.EPERM, UpdateMap, self.map_fd, key, value) 290 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key) 298 self.assertRaisesErrno(errno.EPERM, LookupMap, self.map_fd, key) 312 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 4, self.prog_fd) 313 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 6, self.prog_fd) 457 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid) [all …]
|
D | multinetwork_test.py | 19 import errno 89 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstsockaddr, 53)) 818 self.assertRaisesErrno(errno.ENETUNREACH, s.sendto, UDP_PAYLOAD, 997 errno.EMSGSIZE, 1130 errno.EINVAL, 1144 errno.ENOENT, 1147 self.assertRaisesErrno(errno.ENOENT, 1163 errno.ENOENT, 1193 errno.EEXIST, 1217 errno.EINVAL, [all …]
|
D | removed_feature_test.py | 17 import errno 77 self.assertRaisesErrno(errno.EPERM, socket, AF_PACKET, SOCK_RAW, 0) 81 self.assertRaisesErrno(errno.ENOENT, open, "/proc/net/xt_qtaguid") 85 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_def") 86 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_max") 87 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_min") 88 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_def") 89 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_max") 90 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_min")
|
D | namespace.py | 82 errno = ctypes.get_errno() 83 raise OSError(errno, '%s mounting %s on %s (fs=%s flags=0x%x)' 84 % (os.strerror(errno), src, tgt, fs, flags)) 104 errno = ctypes.get_errno() 105 raise OSError(errno, '%s while sethostname(%s)' % (os.strerror(errno), s)) 111 errno = ctypes.get_errno() 112 raise OSError(errno, '%s while unshare(0x%x)' % (os.strerror(errno), flags))
|
D | pf_key.py | 207 if msg.errno != 0: 208 raise OSError(msg.errno, os.strerror(msg.errno)) 273 msg.version, msgtype, msg.errno, satype, msg.len,
|
D | sock_diag_test.py | 18 from errno import * # pylint: disable=wildcard-import 179 self.assertEqual(expected_errno, thread.exception.errno) 849 def assertSocketErrors(self, errno): argument 851 self.assertRaisesErrno(errno, self.accepted.recv, 4096) 939 if e.errno != EADDRINUSE:
|
D | xfrm_tunnel_test.py | 18 from errno import * # pylint: disable=wildcard-import 85 if err.errno == ENOPROTOOPT: 87 elif err.errno == EINVAL: 90 print("Unexpected error, assuming XFRM_MIGRATE is enabled:", err.errno)
|
D | qtaguid_test.py | 19 import errno 89 self.assertRaisesErrno(errno.EPERM, s.sendto, "foo", addr) 116 self.assertRaisesErrno(errno.EPERM, s2.sendto, "foo", addr2)
|
D | csocket.py | 108 errno = ctypes.get_errno() 109 raise socket.error(errno, os.strerror(errno))
|
D | srcaddr_selection_test.py | 17 import errno 120 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address) 121 self.assertRaisesErrno(errno.EINVAL,
|
D | sock_diag.py | 21 import errno 367 if e.errno == errno.ENOTCONN:
|
D | xfrm_algorithm_test.py | 18 from errno import * # pylint: disable=wildcard-import 126 if err.errno == ENOSYS: 129 print("Unexpected error:", err.errno)
|
D | iproute.py | 24 import errno 412 if e.errno == errno.ENOENT:
|
D | xfrm_test.py | 18 from errno import * # pylint: disable=wildcard-import 144 self.assertEqual(ESRCH, e.errno, "Unexpected error when deleting ACQ SA") 857 self.assertEqual(EEXIST, e.errno, "SA exists")
|
D | tcp_nuke_addr_test.py | 17 import errno 88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
|
D | neighbour_test.py | 17 import errno 144 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
|
D | multinetwork_base.py | 19 import errno 563 if re.match(e.message, os.strerror(errno.EAGAIN)):
|
D | nf_test.py | 19 import errno
|
D | leak_test.py | 17 from errno import * # pylint: disable=wildcard-import
|
D | tcp_fastopen_test.py | 19 from errno import *
|
D | tcp_repair_test.py | 19 from errno import * # pylint: disable=wildcard-import
|