Lines Matching refs:address
155 raise ValueError("Unknown hardware address length %d" % len(hwaddr))
186 # Compress the address.
187 address = inet_ntop(AF_INET6, inet_pton(AF_INET6, formatted))
188 return address
191 def FormatSockStatAddress(address):
192 if ":" in address:
196 binary = inet_pton(family, address)
205 for address in addresses:
206 address = [s for s in address.strip().split(" ") if s]
207 if address[5] == ifname:
208 if (linklocal and address[0].startswith("fe80")
209 or not linklocal and not address[0].startswith("fe80")):
210 # Convert the address from raw hex to something with colons in it.
211 return FormatProcAddress(address[0])