Lines Matching refs:addr
172 addr = {4: "0.0.0.0", 5: "::", 6: "::"}[version]
174 sock.bind((addr, 0))
191 def CreateSocketPair(family, socktype, addr): argument
194 listensock.bind((addr, 0))
195 addr = listensock.getsockname()
248 def CanonicalizeIPv6Address(addr): argument
249 return inet_ntop(AF_INET6, inet_pton(AF_INET6, addr))
314 def MakeFlowLabelOption(addr, label): argument
328 addr = inet_pton(AF_INET6, addr)
329 assert len(addr) == 16
335 return struct.pack(fmt, addr, label, action, share, flags, 0, 0, pad)
338 def SetFlowLabel(s, addr, label): argument
339 opt = MakeFlowLabelOption(addr, label)