Return the anycast address associated with all home agents on a given subnet.
(prefix)
| 687 | |
| 688 | |
| 689 | def in6_getha(prefix): |
| 690 | # type: (str) -> str |
| 691 | """ |
| 692 | Return the anycast address associated with all home agents on a given |
| 693 | subnet. |
| 694 | """ |
| 695 | r = in6_and(inet_pton(socket.AF_INET6, prefix), in6_cidr2mask(64)) |
| 696 | r = in6_or(r, inet_pton(socket.AF_INET6, '::fdff:ffff:ffff:fffe')) |
| 697 | return inet_ntop(socket.AF_INET6, r) |
| 698 | |
| 699 | |
| 700 | def in6_ptop(str): |
nothing calls this directly
no test coverage detected