Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dsock_diag_test.py133 diag_msg, attrs = info
135 self.assertEqual(diag_msg.family, family)
138 self.assertEqual(diag_msg.id.src, self.sock_diag.PaddedAddress(src))
139 self.assertEqual(diag_msg.id.sport, sport)
141 if self.sock_diag.GetDestinationAddress(diag_msg) not in ["0.0.0.0", "::"]:
143 self.assertEqual(diag_msg.id.dst, self.sock_diag.PaddedAddress(dst))
144 self.assertEqual(diag_msg.id.dport, dport)
208 diag_msg = self.sock_diag.FindSockDiagFromFd(sock)
209 diag_req = self.sock_diag.DiagReqFromDiagMsg(diag_msg, IPPROTO_TCP)
221 for diag_msg, unused_attrs in sockets:
[all …]
Dsock_diag.py329 def GetSourceAddress(diag_msg): argument
331 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.src)
334 def GetDestinationAddress(diag_msg): argument
336 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.dst)
393 for diag_msg, attrs in results:
394 if diag_msg.inode == inode:
395 return diag_msg, attrs
417 diag_msg, attrs = self.FindSockInfoFromFd(s)
419 req = self.DiagReqFromDiagMsg(diag_msg, protocol)