Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 22 of 22) sorted by relevance

/kernel/tests/net/test/
Dping6_test.py19 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 …]
Dbpf_test.py18 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 …]
Dmultinetwork_test.py19 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 …]
Dremoved_feature_test.py17 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")
Dnamespace.py82 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))
Dpf_key.py207 if msg.errno != 0:
208 raise OSError(msg.errno, os.strerror(msg.errno))
273 msg.version, msgtype, msg.errno, satype, msg.len,
Dsock_diag_test.py18 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:
Dxfrm_tunnel_test.py18 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)
Dqtaguid_test.py19 import errno
89 self.assertRaisesErrno(errno.EPERM, s.sendto, "foo", addr)
116 self.assertRaisesErrno(errno.EPERM, s2.sendto, "foo", addr2)
Dcsocket.py108 errno = ctypes.get_errno()
109 raise socket.error(errno, os.strerror(errno))
Dsrcaddr_selection_test.py17 import errno
120 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address)
121 self.assertRaisesErrno(errno.EINVAL,
Dsock_diag.py21 import errno
367 if e.errno == errno.ENOTCONN:
Dxfrm_algorithm_test.py18 from errno import * # pylint: disable=wildcard-import
126 if err.errno == ENOSYS:
129 print("Unexpected error:", err.errno)
Diproute.py24 import errno
412 if e.errno == errno.ENOENT:
Dxfrm_test.py18 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")
Dtcp_nuke_addr_test.py17 import errno
88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
Dneighbour_test.py17 import errno
144 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
Dmultinetwork_base.py19 import errno
563 if re.match(e.message, os.strerror(errno.EAGAIN)):
Dnf_test.py19 import errno
Dleak_test.py17 from errno import * # pylint: disable=wildcard-import
Dtcp_fastopen_test.py19 from errno import *
Dtcp_repair_test.py19 from errno import * # pylint: disable=wildcard-import