Lines Matching refs:family
108 if msg.family == AF_INET or msg.family == AF_INET6:
196 family = AF_INET6 if ":" in addr else AF_INET
197 addr = inet_pton(family, addr)
198 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
240 for family in [AF_INET, AF_INET6]:
241 diag_req = InetDiagReqV2((family, protocol, ext, states, sock_id))
247 def GetRawAddress(family, addr): argument
249 addrlen = {AF_INET:4, AF_INET6: 16}[family]
250 return inet_ntop(family, addr[:addrlen])
255 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.src)
260 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.dst)
265 family = AF_INET6 if ":" in addr else AF_INET
266 return inet_pton(family, addr)
279 family = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_DOMAIN)
293 dst = "::" if family == AF_INET6 else "0.0.0.0"
299 return InetDiagReqV2((family, protocol, 0, 0xffffffff, sock_id))
319 return InetDiagReqV2((d.family, protocol, 0, 1 << d.state, d.id))