Searched refs:buf (Results 1 – 3 of 3) sorted by relevance
/kernel/tests/net/test/ |
D | csocket.py | 171 def _ParseMsgControl(buf): argument 174 while len(buf) > 0: 175 cmsghdr, buf = cstruct.Read(buf, CMsgHdr) 178 data, buf = buf[:datalen], buf[padlen + datalen:] 314 buf = ctypes.create_string_buffer(buflen) 315 iov = Iovec((ctypes.addressof(buf), buflen)) 328 data = buf.raw[:ret] 339 buf = ctypes.create_string_buffer(size) 343 ret = libc.recvfrom(s.fileno(), buf, len(buf), flags, 347 data = buf[:ret]
|
D | tcp_repair_test.py | 268 buf = ctypes.c_int() 269 fcntl.ioctl(sock, SIOCINQ, buf) 270 self.assertEqual(buf.value, 0) 274 fcntl.ioctl(sock, SIOCINQ, buf) 275 self.assertEqual(buf.value, len(TEST_RECV_PAYLOAD)) 282 buf = ctypes.c_int() 283 fcntl.ioctl(sock, SIOCOUTQ, buf) 284 self.assertEqual(buf.value, 0) 290 fcntl.ioctl(sock, SIOCOUTQ, buf) 291 self.assertEqual(buf.value, len(TEST_SEND_PAYLOAD)) [all …]
|
D | cstruct.py | 268 buf = ctypes.create_string_buffer(self.Pack()) 270 super(CStruct, self).__setattr__("_buffer", buf)
|