Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dbpf.py206 ret = libc.syscall(__NR_bpf, op, csocket.VoidPointer(attr), len(attr))
207 csocket.MaybeRaiseSocketError(ret)
208 return ret
274 ret = libc.setsockopt(sock_fd, socket.SOL_SOCKET, SO_ATTACH_BPF,
276 csocket.MaybeRaiseSocketError(ret)
295 ret = BpfInsn((code, dst_src, 0, 0))
296 return ret.Pack()
302 ret = BpfInsn((code, dst_src, off, 0))
303 return ret.Pack()
309 ret = BpfInsn((code, dst_src, off, 0))
[all …]
Dcsocket.py106 def MaybeRaiseSocketError(ret): argument
107 if ret < 0:
206 ret = libc.bind(s.fileno(), VoidPointer(to), len(to))
207 MaybeRaiseSocketError(ret)
208 return ret
213 ret = libc.connect(s.fileno(), VoidPointer(to), len(to))
214 MaybeRaiseSocketError(ret)
215 return ret
273 ret = libc.sendmsg(s.fileno(), msghdr, 0)
274 MaybeRaiseSocketError(ret)
[all …]
Dnamespace.py80 ret = libc.mount(src, tgt, fs, flags, None)
81 if ret < 0:
102 ret = libc.sethostname(s, len(s))
103 if ret < 0:
109 ret = libc.unshare(flags)
110 if ret < 0: