Searched hist:b81d67ed0c2074f0b69afbed75104bde698550ca (Results 1 – 1 of 1) sorted by relevance
/haiku/src/apps/networkstatus/ |
H A D | NetworkStatusView.cpp | b81d67ed0c2074f0b69afbed75104bde698550ca Fri Dec 25 06:02:39 UTC 2020 Jeremy Visser <jeremyvisser@google.com> NetworkStatus: print all interface addresses, not just the first
The NetworkStatus applet by default only shows the first address on the interface, assuming IPv4 semantics and ignoring others.
This assumption doesn't hold true for IPv6-enabled systems, which not only have both IPv4+IPv6 addresses, but typically multiple IPv6 addresses (link-local and global at a minimum).
In addition, it's not unheard of to have multiple IPv4 addresses on a single interface, even though it's difficult to configure in Haiku at time of writing.
This change loops through all available addresses and prints them in the status.
No attention to ordering is made; future enhancements could include sorting IPv6 global/link-local, displaying the type, etc.
Change-Id: Ib437e32fc878b5baafa8c2437659e10fb6fcffbf Reviewed-on: https://review.haiku-os.org/c/haiku/+/3550 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|