MCPcopy Create free account
hub / github.com/YtFlow/Maple / IpSummary

Method IpSummary

Maple.App/Model/Netif.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected