Lines Matching refs:s
106 s = socket(family, SOCK_DGRAM, 0)
108 self.SelectInterface(s, netid, "mark")
111 s.connect((remotesockaddr, 53))
112 saddr, sport = s.getsockname()[:2]
113 daddr, dport = s.getpeername()[:2]
121 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53))
128 xfrm_base.ApplySocketPolicy(s, xfrm_family, xfrm.XFRM_POLICY_OUT,
136 s.sendto, net_test.UDP_PAYLOAD, (remotesockaddr, 53))
154 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53))
166 s.sendto, net_test.UDP_PAYLOAD, (remoteaddr2, 53))
185 s.sendto, net_test.UDP_PAYLOAD, (remotesockaddr, 53))
188 xfrm_base.SetPolicySockopt(s, family, None)
189 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53))
193 xfrm_base.SetPolicySockopt(s, family, None)
194 s.sendto(net_test.UDP_PAYLOAD, (remotesockaddr, 53))
198 s = socket(AF_INET6, SOCK_DGRAM, 0)
199 xfrm_base.SetPolicySockopt(s, family, None)
226 s = socket(AF_INET, SOCK_DGRAM, 0)
227 self.SelectInterface(s, netid, "mark")
228 s.connect((remoteaddr, 53))
230 return netid, myaddr, remoteaddr, encap_sock, encap_port, s
234 encap_port, s, use_null_auth):
250 xfrm_base.ApplySocketPolicy(s, AF_INET, xfrm.XFRM_POLICY_OUT, out_spi,
256 xfrm_base.ApplySocketPolicy(s, AF_INET, xfrm.XFRM_POLICY_IN, in_spi,
332 netid, myaddr, remoteaddr, encap_sock, encap_port, s = \
336 s, use_null_auth)
339 self._VerifyUdpEncapSocket(netid, remoteaddr, myaddr, encap_port, s, in_spi,
364 netid, myaddr, remoteaddr, encap_sock, encap_port, s = \
372 encap_port, s, True)
375 self._VerifyUdpEncapSocket(netid, remoteaddr, myaddr, encap_port, s,
383 encap_port, s, True)
387 self._VerifyUdpEncapSocket(netid, remoteaddr, myaddr, encap_port, s,
389 self._VerifyUdpEncapSocket(netid, remoteaddr, myaddr, encap_port, s,
397 self._VerifyUdpEncapSocket(netid, remoteaddr, myaddr, encap_port, s,
452 s = socket(family, SOCK_DGRAM, 0)
453 self.SelectInterface(s, netid, "mark")
457 s.connect((remote, 53))
461 xfrm_base.ApplySocketPolicy(s, family, xfrm.XFRM_POLICY_OUT,
467 s.send(net_test.UDP_PAYLOAD)
700 s = socket(family, SOCK_DGRAM, 0)
701 self.SelectInterface(s, self.RandomNetid(), "mark")
716 xfrm_base.ApplySocketPolicy(s, family, xfrm.XFRM_POLICY_OUT, spi, reqid,
728 s.sendto(net_test.UDP_PAYLOAD, (remoteaddr, 53))
732 s.sendto(net_test.UDP_PAYLOAD, (remoteaddr, 53))
821 s = socket(family, SOCK_DGRAM, 0)
822 self.SelectInterface(s, netid, "mark")
836 s.sendto(net_test.UDP_PAYLOAD, (remote, 53))
857 s.sendto, net_test.UDP_PAYLOAD, (remote, 53))
868 s.sendto(net_test.UDP_PAYLOAD, (remote, 53))
881 s.sendto(net_test.UDP_PAYLOAD, (remote, 53))