Lines Matching refs:family
119 if msg.family == AF_INET or msg.family == AF_INET6:
152 if addr.family == AF_INET:
154 elif addr.family == AF_INET6:
229 family = AF_INET6 if ":" in addr else AF_INET
230 addr = inet_pton(family, addr)
231 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
278 if cond.family == 0:
281 addrlen = 4 if cond.family == AF_INET else 16
283 addr = inet_ntop(cond.family, addr)
316 for family in [AF_INET, AF_INET6]:
317 diag_req = InetDiagReqV2((family, protocol, ext, states, sock_id))
323 def GetRawAddress(family, addr): argument
325 addrlen = {AF_INET:4, AF_INET6: 16}[family]
326 return inet_ntop(family, addr[:addrlen])
331 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.src)
336 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.dst)
341 family = AF_INET6 if ":" in addr else AF_INET
342 return inet_pton(family, addr)
355 family = s.getsockopt(net_test.SOL_SOCKET, net_test.SO_DOMAIN)
369 dst = "::" if family == AF_INET6 else "0.0.0.0"
375 return InetDiagReqV2((family, protocol, 0, 0xffffffff, sock_id))
410 return InetDiagReqV2((d.family, protocol, 0, 1 << d.state, d.id))