Arnout Engelen
29184803cb
Also log the local IPv6 address
2015-12-20 15:07:33 +01:00
Arnout Engelen
ee8b7ea8a4
Use a normal DGRAM (UDP) socket to determine local IPv4 IP ( fixes #9 )
2015-12-20 15:06:26 +01:00
Arnout Engelen
69eedd0faf
More .gitignore
2015-10-18 22:35:17 +02:00
Arnout Engelen
139d837eef
Add .gitignore
2015-10-11 22:41:38 +02:00
Arnout Engelen
18242449df
Merge pull request #8 from nibroc/cmdline-overflow
...
Fixed buffer overflow for cmdline strings of length >= 80, closes #7
2015-10-06 16:58:30 +02:00
Corbin Hughes
e798b3e3ce
Fixed buffer overflow for cmdline strings of length >= 80
2015-10-04 16:03:08 -05:00
Arnout Engelen
580c412099
Merge pull request #1 from jlec/ncurses
...
Allow to specify ncurses libs at buildtime
2014-07-25 15:27:56 +02:00
Justin Lecher
01c61290a3
Allow to specify ncurses libs at buildtime
...
If the system is using libtinfo then you need ot link against libncurses and libtinfo.
With this patch it is possible to specify this at buildtime.
Signed-off-by: Justin Lecher <jlec@gentoo.org >
2014-07-24 12:13:06 +02:00
Arnout Engelen
a0fefea972
Also correctly display PID's up to 7 characters
...
Thanks to Martijn Dekker
2014-05-05 21:57:11 +02:00
Arnout Engelen
f6f9e890ea
Some 'const'-ing
2013-05-12 19:49:26 +00:00
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