darkstat
10 years agoReport gettimeofday() for comparison. seclog
Emil Mikulic [Thu, 7 Apr 2011 14:09:09 +0000 (00:09 +1000)]
Report gettimeofday() for comparison.

10 years agoDarkstat patch: throughput log per second
Dario Fiumicello [Wed, 6 Apr 2011 14:13:41 +0000 (16:13 +0200)]
Darkstat patch: throughput log per second

Hi Emil, I recently added darkstat 3.0.713 a new "--seclog" option,
based on the original --daylog functionality.

--seclog works quite the same way as daylog, but instead of producing a
report of daily geenrated traffic it emit a record every second. It also
rotate such records once per day, so you will have for example:

seclog.2011-04-05
seclog.2011-04-06
...

I needed to have this functionality for gathering detailed statistics
informations about traffic generated from a gateway installed at a
customer network.

I used as a base the debian source code present in Ubuntu 10.10 but I
think this patch will apply without problems also on original 3.0.713
source code.

It needs some minor adjustments but actually it works without problems
for me.

If you are interested in it and you think it can be added in the
darkstat main trunk (maybe in the next 3.0.714 release) please let me
know.

Cheers

Dario

11 years agomanpage: display the actual package version 3.0.713
Emil Mikulic [Fri, 5 Mar 2010 06:06:12 +0000 (17:06 +1100)]
manpage: display the actual package version

11 years agoUpdate ChangeLog in preparation for darkstat 3.0.713
Emil Mikulic [Mon, 18 Jan 2010 06:40:04 +0000 (17:40 +1100)]
Update ChangeLog in preparation for darkstat 3.0.713

11 years agoconfigure: give better --with-chroot-dir example
Emil Mikulic [Fri, 5 Mar 2010 05:09:13 +0000 (16:09 +1100)]
configure: give better --with-chroot-dir example

Don't allow "yes" as a chroot directory.

Also, as much as this pains me, be less jerky.
It turns out that not every Unix is as awesome as OpenBSD.

11 years agoImplement --wait
Emil Mikulic [Sun, 17 Jan 2010 14:17:11 +0000 (01:17 +1100)]
Implement --wait

11 years agoRemove dead stores.
Emil Mikulic [Sun, 17 Jan 2010 14:41:52 +0000 (01:41 +1100)]
Remove dead stores.

Found by: Clang Static Analyzer

11 years agoTweak manpage wording and formatting.
Emil Mikulic [Sun, 17 Jan 2010 14:17:51 +0000 (01:17 +1100)]
Tweak manpage wording and formatting.

11 years agoMerge THANKS into AUTHORS.
Emil Mikulic [Sun, 17 Jan 2010 13:52:30 +0000 (00:52 +1100)]
Merge THANKS into AUTHORS.

11 years agoShip the ChangeLog when rolling a release.
Emil Mikulic [Wed, 18 Nov 2009 11:59:01 +0000 (22:59 +1100)]
Ship the ChangeLog when rolling a release.

11 years agoAdd ChangeLog from darkstat website.
Emil Mikulic [Wed, 18 Nov 2009 11:58:10 +0000 (22:58 +1100)]
Add ChangeLog from darkstat website.

11 years agoImprove wording of "network internal"
Emil Mikulic [Wed, 16 Sep 2009 13:15:36 +0000 (23:15 +1000)]
Improve wording of "network internal"

11 years agoImprove --pppoe example and mention nas0 interface.
Emil Mikulic [Wed, 16 Sep 2009 13:11:28 +0000 (23:11 +1000)]
Improve --pppoe example and mention nas0 interface.

Requested by: Prof A Olowofoyeku / routertech.org

11 years agoImplement and document --syslog
Emil Mikulic [Wed, 16 Sep 2009 13:01:52 +0000 (23:01 +1000)]
Implement and document --syslog

11 years agoImprove the "timeout on" diagnostic message.
Emil Mikulic [Wed, 26 Aug 2009 11:59:09 +0000 (21:59 +1000)]
Improve the "timeout on" diagnostic message.

12 years agoHack around snaplen problem in recent Ubuntu.
Emil Mikulic [Mon, 17 Aug 2009 09:09:04 +0000 (19:09 +1000)]
Hack around snaplen problem in recent Ubuntu.

12 years agoImplement --snaplen
Emil Mikulic [Wed, 12 Aug 2009 12:24:29 +0000 (22:24 +1000)]
Implement --snaplen

12 years agoUse pcap_setnonblock() on Linux.
Emil Mikulic [Wed, 12 Aug 2009 12:48:24 +0000 (22:48 +1000)]
Use pcap_setnonblock() on Linux.

12 years agoImplement --no-lastseen
Emil Mikulic [Sat, 25 Apr 2009 13:57:23 +0000 (23:57 +1000)]
Implement --no-lastseen

12 years agoImplement --hexdump
Emil Mikulic [Sat, 25 Apr 2009 11:20:55 +0000 (21:20 +1000)]
Implement --hexdump

12 years agoManpage moved to section 8, adjust usage notice.
Emil Mikulic [Fri, 24 Apr 2009 11:43:44 +0000 (21:43 +1000)]
Manpage moved to section 8, adjust usage notice.

12 years agoAdjust {hosts,ports}-keep when they're not kept under max.
Emil Mikulic [Thu, 1 Jan 2009 12:27:48 +0000 (23:27 +1100)]
Adjust {hosts,ports}-keep when they're not kept under max.

Requested by: The Chief

12 years agoDon't apply ports-{max,keep} to protocols.
Emil Mikulic [Thu, 1 Jan 2009 12:27:11 +0000 (23:27 +1100)]
Don't apply ports-{max,keep} to protocols.

This helps us survive proto accounting when --ports-max is zero.

12 years agoSkip port accounting when --ports-max is zero.
Emil Mikulic [Thu, 1 Jan 2009 12:26:41 +0000 (23:26 +1100)]
Skip port accounting when --ports-max is zero.

12 years agoSkip per-host accounting if --hosts-max is zero.
Emil Mikulic [Thu, 1 Jan 2009 12:17:34 +0000 (23:17 +1100)]
Skip per-host accounting if --hosts-max is zero.

12 years agoBe very specific that max must be greater than keep.
Emil Mikulic [Thu, 1 Jan 2009 12:00:05 +0000 (23:00 +1100)]
Be very specific that max must be greater than keep.

Prompted by: a RouterTech user

12 years agoImplement support for DLT_RAW.
Anton S. Ustyuzhanin [Thu, 1 Jan 2009 11:36:07 +0000 (22:36 +1100)]
Implement support for DLT_RAW.

12 years agoIgnore errors from pcap_dispatch.
Emil Mikulic [Thu, 1 Jan 2009 11:30:37 +0000 (22:30 +1100)]
Ignore errors from pcap_dispatch.

This makes interface going down survivable on Linux.

Prompted by: Chris Franklin

12 years agomanual: Add example for specifying local IP via -l.
Dennis Jansen [Wed, 10 Dec 2008 10:37:31 +0000 (11:37 +0100)]
manual: Add example for specifying local IP via -l.

12 years agoDon't require --verbose for pcap_stats.
Emil Mikulic [Wed, 10 Dec 2008 10:59:50 +0000 (21:59 +1100)]
Don't require --verbose for pcap_stats.

How embarassing.  And it didn't get picked up during testing.

Noticed by: Dennis Jansen

12 years agoImport darkstat 3.0.712 3.0.712
Emil Mikulic [Fri, 24 Apr 2009 11:34:12 +0000 (21:34 +1000)]
Import darkstat 3.0.712