Commit Graph

111 Commits

Author SHA1 Message Date
Arnout Engelen
93378924f0 Don't poll for user input so often 2013-05-12 19:42:03 +00:00
Arnout Engelen
f13ac22151 Be more efficient about allocating duplicate stuff and on the stack vs heap 2013-05-12 19:37:36 +00:00
Arnout Engelen
b56e2f16fe Don't refresh while processing packets 2013-05-12 18:39:36 +00:00
Arnout Engelen
d7497c1ebf As a last resort, match packets to processes when only the local part matches
Helps for applications with many short-lived connections (such as bittorrent)
and is correct except for exotic use cases anyway
2013-05-12 18:17:59 +00:00
Arnout Engelen
9d8555e17c Don't needlessly recalculate the direction 2013-05-12 17:50:55 +00:00
Arnout Engelen
bb2a4e0480 Remove 'currentdevice' global 2013-05-12 17:42:43 +00:00
Arnout Engelen
6cdf24bf71 Remove dead code 2013-05-12 17:03:07 +00:00
Arnout Engelen
cf7c07847b Split accumulation, trace-presentation and ncurses-presentation more neatly
Still more work to be done there :)
2013-05-12 14:42:02 +00:00
Arnout Engelen
a84b62a802 Allow setting C(XX)FLAGS from the environment 2013-05-12 14:01:10 +00:00
Arnout Engelen
a3c9a81e53 move allocation of initial userdata memory block out of the loop, better error 2013-05-12 13:58:37 +00:00
Arnout Engelen
7c599c8c80 Get all running non-loopback devices by default, thanks to Alexandre LAURENT! 2013-05-12 12:59:50 +00:00
Arnout Engelen
f6220a3c0d Enable more warnings (thanks to Alexandre LAURENT) 2013-05-12 12:54:11 +00:00
Arnout Engelen
d097ecbd4e Use constants rather than magic numbers, thanks to Alexandre LAURENT 2013-05-12 12:51:13 +00:00
Arnout Engelen
37fc667c90 Oops updated too much 2013-05-12 12:50:33 +00:00
Arnout Engelen
2b9a87f917 Add documentation (thanks to Cobra_Fast) 2013-05-12 12:40:08 +00:00
Arnout Engelen
31b254e719 Use C++-style headers where available 2013-05-12 12:34:29 +00:00
Arnout Engelen
78bcecd109 errno is an integer, not a pointer. 2013-05-12 12:23:16 +00:00
Arnout Engelen
7305a07579 Merge patch by muszo 2013-05-12 12:13:55 +00:00
Arnout Engelen
0ac3e624fc make inode field 'const' and private 2012-03-16 00:07:33 +00:00
Arnout Engelen
f95b4f7f85 Don't use the unknown tcp process anymore 2012-03-15 23:47:59 +00:00
Arnout Engelen
227f8bddd2 we don't need to strdup the device name 2012-03-15 23:30:38 +00:00
Arnout Engelen
ac7bb5c315 take into account the terminal height when printing the 'total' row 2012-03-15 23:01:12 +00:00
Arnout Engelen
e4290a0d7b fix warning - errbuf is not const at all 2012-03-15 22:48:30 +00:00
Arnout Engelen
4e9d29f923 allow large values for 'pid' 2012-03-15 22:45:16 +00:00
Arnout Engelen
1224ffeecc use CXXFLAGS, use LDFLAGS, fix DESTDIR 2012-03-15 22:42:29 +00:00
Arnout Engelen
4ff973bbd7 make a 'runtests' make target that runs some 'unit test'-like tests. Fix crash when uid's without a password entry are encountered, return the uid as a string instead. 2012-03-15 22:31:28 +00:00
Arnout Engelen
2c04ca9267 Use negative return values on errors 2012-03-15 20:53:25 +00:00
Arnout Engelen
d7476faae1 Add proper license header and COPYING file with the GPLv2 text 2011-08-28 17:22:52 +00:00
Arnout Engelen
dd3404ad71 previous change was only initial support, not finished work 2011-08-28 17:00:06 +00:00
Arnout Engelen
32b9a804a2 next version is 0.8.1-SNAPSHOT 2011-08-27 14:07:34 +00:00
Arnout Engelen
210c2a3740 keep CVS directory out of tgz 2011-08-27 13:38:54 +00:00
Arnout Engelen
07f7c38f00 Show '?' as PID when the PID could not be determined, instead of '0'.
https://answers.launchpad.net/ubuntu/+source/nethogs/+question/113880
2011-08-27 13:26:52 +00:00
Arnout Engelen
807ba06391 version 0.8.0 2011-08-27 13:21:21 +00:00
Arnout Engelen
c92f4b8e0a ignore executables 2011-08-27 11:35:31 +00:00
Arnout Engelen
ff8151fe96 some 'const' specifications, putting the code to determine the default device
in its own file
2011-07-12 21:53:54 +00:00
Arnout Engelen
a50b249438 support wider terminals (thanks to Shock at https://bugs.launchpad.net/ubuntu/+source/nethogs/+bug/627626) 2010-08-31 21:17:16 +00:00
Arnout Engelen
3888c15784 Document keys for switching display modes and sorting on 'sent' or 'received'
numbers - thanks to Bobly for the trigger
2010-04-04 15:36:59 +00:00
Arnout Engelen
3e96194c70 Added include for gcc 4.4 as suggested by
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526208
2009-04-30 08:13:36 +00:00
Arnout Engelen
e6dee5232f sbin instead of bin :S 2009-03-31 18:43:18 +00:00
Arnout Engelen
1ee47c9aaf include limits.h 2009-03-12 23:08:09 +00:00
Arnout Engelen
0072311911 use getopt (thanks to Petr Uzel) 2008-12-31 16:44:02 +00:00
Arnout Engelen
3d6ac8bdd3 remove ROBUST, this is taken care of by NDEBUG (thanks to Petr Uzel) 2008-12-31 15:52:26 +00:00
Arnout Engelen
8b7a51c57d do not free 'getpwuid' result (thanks to Petr Uzel) 2008-12-31 15:44:32 +00:00
Arnout Engelen
22a28e973e make 'forceexit' more fprintf-like, better error message when ioctl fails. 2008-12-31 15:40:48 +00:00
Arnout Engelen
cddd1d2e6c eclipse .project and eclipse CDT .cproject files 2008-12-31 15:25:57 +00:00
Arnout Engelen
c9e65eb4b1 More Makefile improvements by Petr Uzel: installing to /sbin, adding
conninode and removing some trailing whitespace.
2008-12-07 21:53:15 +00:00
Arnout Engelen
c51a014b4f Improved 'make install' due to Petr Uzel 2008-12-06 11:39:12 +00:00
Arnout Engelen
7b54891553 remove some unneccessary checks - thanks to Petr Uzel 2008-12-06 11:36:03 +00:00
Arnout Engelen
218e117731 missing include, thanks to Petr Uzel for noticing 2008-12-06 11:28:29 +00:00
Arnout Engelen
0820314477 nicely separate conn2inode stuff into its own file 2008-06-24 20:15:45 +00:00