Lines Matching refs:addr
66 def MakePktInfo(version, addr, ifindex): argument
68 if not addr:
69 addr = {4: "0.0.0.0", 6: "::"}[version]
70 if addr:
71 addr = inet_pton(family, addr)
73 return csocket.In6Pktinfo((addr, ifindex)).Pack()
75 return csocket.InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
183 addr = cls.MyAddress(version, netid)
184 return "::ffff:" + addr if version == 5 else addr
477 addr = self.GetRemoteAddress(version)
478 return "::ffff:" + addr if version == 5 else addr