Lines Matching refs:s
353 def DiagReqFromSocket(s): argument
355 family = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_DOMAIN)
356 protocol = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_PROTOCOL)
358 iface = s.getsockopt(SOL_SOCKET, net_test.SO_BINDTODEVICE,
363 src, sport = s.getsockname()[:2]
365 dst, dport = s.getpeername()[:2]
378 def GetSocketCookie(s): argument
379 cookie = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_COOKIE, 8)
382 def FindSockInfoFromFd(self, s): argument
384 req = self.DiagReqFromSocket(s)
389 inode = os.fstat(s.fileno()).st_ino
398 def FindSockDiagFromFd(self, s): argument
400 return self.FindSockInfoFromFd(s)[0]
416 def CloseSocketFromFd(self, s): argument
417 diag_msg, attrs = self.FindSockInfoFromFd(s)
418 protocol = s.getsockopt(SOL_SOCKET, net_test.SO_PROTOCOL)