Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dxfrm_tunnel_test.py110 read_sock = socket(net_test.GetAddressFamily(version), SOCK_DGRAM, 0)
111 read_sock.bind((net_test.GetWildcardAddress(version), port))
113 local_port = read_sock.getsockname()[1]
115 csocket.SetSocketTimeout(read_sock, 500)
117 return read_sock, local_port
159 remote_outer, read_sock): argument
162 local_port = read_sock.getsockname()[1]
171 data, src = read_sock.recvfrom(4096)
210 read_sock, _ = _CreateReceiveSock(inner_version)
212 sock = write_sock if direction == xfrm.XFRM_POLICY_OUT else read_sock
[all …]