Allow ignoring traffic with virtual machine and containers
When I run a virtual machine or container, the network traffic shown in the system monitor takes the traffic between the host and the virtual machine or container into account as well. This is often undesirable, because
- upstream / downstream traffic to outside network through the host will be counted again in the opposite direction between the host and the vm / container, e.g. if the vm is downloading at 10MB/s, the monitor will show a 10MB/s download and 10MB/s upload simultaneously, which makes it harder to interpret the real activity,
- since the traffic between vm and host is almost unbounded, it can sometimes generate very large traffic, e.g. when doing X11 forward, pushing everything else into insignificance.
In general, I believe the traffic between vm / container and host should be considered closer to local traffic than network, and treated similarly as loop.
(This is probably similar to #73 and #218 (moved), and may be covered by libgtop#63 as well, but I don't think the use case here is directly covered by the other two issues, and it would be good to have a separate issue filed and ensure any solution would be fixing it at the same time.)