| 54 | } |
| 55 | |
| 56 | hstring Netif::IpSummary() |
| 57 | { |
| 58 | // auto const parent = VisualTreeHelper::GetParent(templateRoot); |
| 59 | int cnt4 = 0, cnt6 = 0; |
| 60 | for (auto const& [af, _] : m_addresses) |
| 61 | { |
| 62 | switch (af) |
| 63 | { |
| 64 | case AF_INET: cnt4++; break; |
| 65 | case AF_INET6: cnt6++; break; |
| 66 | default: break; |
| 67 | } |
| 68 | } |
| 69 | return to_hstring(cnt4) + L" IPv4 address" + (cnt4 > 1 ? L"es" : L"") + L"; " |
| 70 | + to_hstring(cnt6) + L" IPv6 address" + (cnt6 > 1 ? L"es" : L""); |
| 71 | } |
| 72 | hstring Netif::IpLines() |
| 73 | { |
| 74 | hstring ret; |
nothing calls this directly
no outgoing calls
no test coverage detected