Home
last modified time | relevance | path

Searched refs:address (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dtcp_metrics.py91 def _NlAttrSaddr(self, address): argument
92 if ":" not in address:
98 return self._NlAttrIPAddress(nla_type, family, address)
100 def _NlAttrTcpMetricsAddr(self, address, is_source): argument
101 version = net_test.GetAddressVersion(address)
104 address = address.replace("::ffff:", "")
108 return self._NlAttrIPAddress(nla_type, family, address)
110 def _NlAttrAddr(self, address): argument
111 return self._NlAttrTcpMetricsAddr(address, False)
113 def _NlAttrSaddr(self, address): argument
[all …]
Dnet_test.py110 def GetAddressVersion(address): argument
111 if ":" not in address:
113 if address.startswith("::ffff"):
258 address = CanonicalizeIPv6Address(formatted)
259 return address
262 def FormatSockStatAddress(address): argument
263 if ":" in address:
267 binary = inet_pton(family, address)
276 for address in addresses:
277 address = [s for s in address.strip().split(" ") if s]
[all …]
Dtcp_test.py50 address = {4: "0.0.0.0", 5: "::", 6: "::"}[version]