Lines Matching refs:addr
151 addr, nla_data = cstruct.Read(nla_data, csocket.SockaddrStorage)
152 if addr.family == AF_INET:
153 addr = csocket.SockaddrIn(addr.Pack())
154 elif addr.family == AF_INET6:
155 addr = csocket.SockaddrIn6(addr.Pack())
156 data.append(addr)
228 addr, prefixlen, port = arg
229 family = AF_INET6 if ":" in addr else AF_INET
230 addr = inet_pton(family, addr)
231 arg = InetDiagHostcond((family, prefixlen, port)).Pack() + addr
282 addr, rest = rest[:addrlen], rest[addrlen:]
283 addr = inet_ntop(cond.family, addr)
284 arg = (addr, cond.prefix_len, cond.port)
323 def GetRawAddress(family, addr): argument
326 return inet_ntop(family, addr[:addrlen])
339 def RawAddress(addr): argument
341 family = AF_INET6 if ":" in addr else AF_INET
342 return inet_pton(family, addr)
345 def PaddedAddress(addr): argument
347 padded = SockDiag.RawAddress(addr)