Lines Matching refs:sock
263 def _VerifyUdpEncapSocket(self, netid, remoteaddr, myaddr, encap_port, sock, argument
266 sock.sendto(net_test.UDP_PAYLOAD, (remoteaddr, 53))
267 srcport = sock.getsockname()[1]
493 sock = net_test.UDPSocket(family)
494 self.SelectInterface(sock, netid, "mark")
495 sock.bind((local_addr, 0))
496 local_port = sock.getsockname()[1]
500 sock, family, xfrm.XFRM_POLICY_OUT, 0xABCD, 123,
503 sock, family, xfrm.XFRM_POLICY_IN, 0x9876, 456,
516 msg, addr = sock.recvfrom(1024)
521 sock.sendto("output hello", (remote_addr, remote_port))
559 sock = net_test.UDPSocket(family)
560 self.SelectInterface(sock, netid, "mark")
561 sock.bind((local_addr, 0))
562 local_port = sock.getsockname()[1]
566 sock, family, xfrm.XFRM_POLICY_OUT, 0xABCD, 123, None)
568 sock, family, xfrm.XFRM_POLICY_IN, 0x9876, 456, None)
579 msg, addr = sock.recvfrom(1024)
584 sock.sendto("output hello", (remote_addr, remote_port))