Commit Graph

146 Commits

Author SHA1 Message Date
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
Arnout Engelen
76afed26b7 bugtracking mode, performance improvement by earlier caching of inode2pid data 2008-06-24 20:01:10 +00:00
Arnout Engelen
eca73fa735 gcc 4.3 compatibility (due to Leslie P. Polzer - skypher) 2008-06-10 21:47:30 +00:00
Arnout Engelen
502a208dca neater manpage, extra #include, thanks to Bart again 2008-06-08 21:29:05 +00:00
Arnout Engelen
384581c9a9 Some fixes thanks to Bart Mertens (nethogs Debian maintainer) 2008-06-08 21:24:30 +00:00
Arnout Engelen
1c776beb68 log an error when failing to go into nonblocking mode 2008-06-08 21:03:50 +00:00
Arnout Engelen
b8cbc9b6f5 some small changes to get nethogs into a more releaseable state again 2008-06-08 20:49:49 +00:00
Arnout Engelen
c0e6a385e4 sums, not eating 100% cpu :) 2006-12-19 20:35:33 +00:00
Arnout Engelen
06bd2d4a25 added decpcap test file 2006-11-04 20:42:04 +00:00
Arnout Engelen
0f63c7e68c brought ppp support a step closer 2006-11-04 20:41:30 +00:00
Arnout Engelen
501954c7c1 preliminary support for cumulative measurements 2006-11-04 18:56:08 +00:00
Arnout Engelen
90577e8be5 ongebruikte files weghalen 2006-11-04 18:42:28 +00:00
Arnout Engelen
7fbbe70e0c it's said libpcap will yield IP packets directly, without encapsulating PPP packets, when sniffing a PPP interface.
blindly adding handling code for that...
2006-11-04 16:59:44 +00:00
Arnout Engelen
4a866021fc error reporting, removal of stale files, removed warning 2006-11-04 15:43:55 +00:00
Arnout Engelen
6539bd8f2d Update to manpage contributed by Shiju P. Nair - thanks! 2006-04-10 20:36:21 +00:00
Arnout Engelen
501a379af5 add tracing to getLocal 2006-02-05 17:24:19 +00:00