Jakub Wilk
0518642c03
Fix typos
2016-04-30 23:04:56 +02:00
Arnout Engelen
9d692b101a
Merge pull request #72 from rain-1/master
...
Detect capabilities when NEEDROOT=0
2016-04-21 19:57:19 +02:00
Arnout Engelen
a8e4a8d255
Merge pull request #76 from fidergo-stephane-gourichon/master
...
Fix broken link (had ill-formed markup).
2016-04-21 12:12:21 +02:00
Stéphane Gourichon
b141994fe5
Fix broken link (had ill-formed markup).
2016-04-21 12:04:27 +02:00
rain1
30f1072946
* src/main.cpp: Bug fix - nul terminate the result of readlink after checking for failure.
2016-04-18 18:34:08 +01:00
rain1
b6a595ae00
* src/main.cpp: Made cap test conditional on __linux__. Improved the error message.
...
* src/nethogs.cpp: Reduced the scope of the includes moving them out of this file.
* src/nethogs.h: Removed NEEDROOT variable.
2016-04-18 18:04:37 +01:00
Arnout Engelen
ab21b3ce74
Merge pull request #74 from akshayKMR/patch-1
...
add bandwidth monitor using nethogs as backend to the list
2016-04-16 18:09:50 +02:00
Akshay Kumar
b1fdcd9da4
Update README.md
2016-04-16 21:04:15 +05:30
Arnout Engelen
9f495ebd7c
Merge pull request #73 from raboof/dontRemoveProcessesWhenViewingCumulativelyMerged
...
Don't time out processes in a cumulative view (fixes #39 )
2016-04-14 20:16:56 +02:00
Arnout Engelen
3facf4f34b
Don't time out processes in a cumulative view ( fixes #39 )
2016-04-14 20:00:30 +02:00
rain1
b2f008c568
* src/nethogs.h: Undo accidental commit.
...
* src/main.cpp: Properly commit this change.
2016-04-14 12:41:34 +00:00
rain1
2ab1306246
* src/nethogs.h: Including files for PATH_MAX and readlink.
...
* src/nethogs.cpp: Bug fix - make capability detection work correctly when invoking a program in PATH rather than only when invoked explicitly like ./src/nethogs.
2016-04-14 12:31:13 +00:00
rain1
a5fbdc1910
* src/main.cpp: Make the capability imports conditional.
...
* src/nethogs.cpp: Make the capability check conditional. Bug fix in the != test.
2016-04-14 12:15:48 +00:00
rain1
c0dd0e2e0c
* src/main.cpp: Bug fix, misnamed a variable.
2016-04-14 12:02:04 +00:00
rain1
43c98c68be
* src/main.cpp: Include header files for capabilities and attrs.
...
* src/nethogs.cpp: Add code to read and parse file attrs, and check for the required capabilities in the non-root case.
2016-04-14 11:49:55 +00:00
Arnout Engelen
ef74014094
Include stdio.h in packet.cpp ( fixes #70 )
...
I guess we want to think about handling output consistently anyway (iostream vs
printf, what to do when we're in library mode), but that's for later.
2016-04-14 09:07:27 +02:00
Arnout Engelen
d9ade498e8
Merge pull request #68 from raboof/fix-stack-buffer-overflow
...
Fix stack buffer overflow
2016-03-31 08:01:33 +02:00
Arnout Engelen
db2da627df
Don't redefine TH_FLAGS
...
Fixes compiler warning:
packet.cpp:127:9: warning: 'TH_FLAGS' macro redefined
^
/usr/include/netinet/tcp.h:103:9: note: previous definition is here
2016-03-31 07:56:09 +02:00
Arnout Engelen
07bd32e878
Add -Wno-missing-field-initializers to build
...
to suppress spurious warning
2016-03-31 07:51:46 +02:00
Wang Xin-yu (王昕宇)
17c51c6a86
fix stack buffer overflow when convert between in6_addr
2016-03-30 16:01:30 +08:00
Arnout Engelen
a2329643f6
Update build system to find manpage again ( fixes #67 )
2016-03-30 07:46:18 +02:00
Arnout Engelen
eb17ecb504
Extend README
...
add upgrading, uninstalling, etc. #65
2016-03-30 07:34:20 +02:00
Arnout Engelen
8b245e1be0
Fix packet matching for packets with IPv6 addresses
2016-03-28 00:30:53 +02:00
Arnout Engelen
c73b8cd065
Remove some dead code
2016-03-27 23:24:12 +02:00
Arnout Engelen
e7a74b00fb
Move sources to 'src' directory
2016-03-27 23:14:33 +02:00
Arnout Engelen
fa8e7cb49e
We don't need a .cvsignore anymore :)
2016-03-27 23:08:16 +02:00
Arnout Engelen
b4e59194f9
Add gnethogs to README
2016-03-27 23:01:55 +02:00
Arnout Engelen
fbe6bca23f
Add links to similar software
2016-03-27 22:29:03 +02:00
Arnout Engelen
67a4dbbc10
Merge pull request #60 from raboof/diagnostics
...
Add diagnostic logging reading /proc/net/tcp
2016-03-27 22:21:48 +02:00
Arnout Engelen
79b594e99c
Disable bughuntmode for tests
2016-03-27 22:19:57 +02:00
Arnout Engelen
f5692feb9e
Add diagnostic logging reading /proc/net/tcp
2016-03-27 22:14:17 +02:00
Arnout Engelen
286a1a8ad2
Some formatting
2016-03-27 21:48:25 +02:00
Arnout Engelen
1f26c3bd9e
Merge pull request #59 from raboof/testReadProcNetTcp
...
Introduce 'test' target, add /proc/net/tcp parsing to it
2016-03-27 21:47:32 +02:00
Arnout Engelen
e3f9f56740
Ignore conninode test
2016-03-27 21:43:59 +02:00
Arnout Engelen
e17c4adf7d
don't test reading the on-system proc/net/tcp on apple
2016-03-27 21:43:15 +02:00
Arnout Engelen
240307d1fe
Introduce 'test' target, add /proc/net/tcp parsing to it
...
The test itself doesn't do much yet, but might shed some light on what's going
on in https://github.com/raboof/nethogs/issues/22
2016-03-27 21:35:35 +02:00
Arnout Engelen
c266593ab7
Don't repeat version settings in Makefile
2016-03-26 17:32:46 +01:00
Arnout Engelen
848dfd44ff
Clarify master should be stable ( closes #58 )
2016-03-26 15:44:39 +01:00
Arnout Engelen
8613de843d
Merge branch 'master' of github.com:raboof/nethogs
2016-03-22 22:06:31 +01:00
Arnout Engelen
b3cf3fdf8e
Merge pull request #52 from raboof/llvmFormatting
...
Use clang-format to format (somewhat) LLVM-style (fixes #44 )
2016-03-22 21:53:41 +01:00
Arnout Engelen
a4076c88c7
Clarify that further exceptions to the LLVM style are welcome
2016-03-22 21:53:22 +01:00
Arnout Engelen
63114b6984
Remove spurious log statement
2016-03-21 09:52:18 +01:00
Arnout Engelen
e74935da1f
Use clang-format to format (somewhat) LLVM-style ( fixes #44 )
2016-03-21 00:31:48 +01:00
Arnout Engelen
ac045b487a
Merge branch 'master' of github.com:raboof/nethogs
2016-03-21 00:29:39 +01:00
Arnout Engelen
dda95a9973
Merge pull request #50 from raboof/warnWhenDown
...
Warn when no devices are up/running (fixes #45 )
2016-03-21 00:18:37 +01:00
Arnout Engelen
5dc362c824
Fix some comments
2016-03-21 00:18:19 +01:00
Arnout Engelen
cb6ad14afc
Warn when no devices are up/running ( fixes #45 )
2016-03-21 00:09:42 +01:00
Arnout Engelen
f2cf510d8e
Merge pull request #49 from raboof/compilerWarning
...
Compiler warning
2016-03-20 23:44:19 +01:00
Arnout Engelen
ffc7d919cc
fix misleading error message
2016-03-20 23:41:25 +01:00
Arnout Engelen
601696d424
forceExit won't work in library mode, log to stderr
2016-03-20 23:40:52 +01:00