NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded.
Pretty useful tool. However, I could not get the trace mode work. However I was able to find a fix. Since I could not create ta bug, I'm adding the details here hoping that it would be useful to others. The trace mode is not working in version 0.8.0, but is is working in 0.7.0 #sudo nethogs -t em1 Adding local address: 192.168.1.101 Ethernet link detected Waiting for first packet to arrive (see sourceforge.net bug 1019381) The program does not report any data. A gdb session revealed that the getmaxyx () call in do_refresh () of cui.cpp is was returning -1 and causing the do_refresh() return without reporting any data. Moving the getmaxyx () and few subsequent statements to the else part of "if (DEBUG || tracemode)" solved the problem for me.
looks marvelous. however, i would like to have the configure script too. think it's easier to cross compile with it.