Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251348 - net-analyzer/darkstat not working with OpenVPN tun interfaces
Summary: net-analyzer/darkstat not working with OpenVPN tun interfaces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 19:19 UTC by Anton S. Ustyuzhanin
Modified: 2009-01-05 20:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds support for openvpn tun interfaces to darkstat (darkstat-3.0.712-dlt_raw.patch,1.47 KB, patch)
2008-12-17 19:26 UTC, Anton S. Ustyuzhanin
Details | Diff
Ebuild, using patch posted before (darkstat-3.0.712.ebuild,1.89 KB, patch)
2008-12-17 19:27 UTC, Anton S. Ustyuzhanin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton S. Ustyuzhanin 2008-12-17 19:19:01 UTC
When you launch darkstat -i tun0, you will see an error: unknown linktype 12

Reproducible: Always
Comment 1 Anton S. Ustyuzhanin 2008-12-17 19:26:01 UTC
Created attachment 175632 [details, diff]
Adds support for openvpn tun interfaces to darkstat
Comment 2 Anton S. Ustyuzhanin 2008-12-17 19:27:02 UTC
Created attachment 175634 [details, diff]
Ebuild, using patch posted before
Comment 3 Anton S. Ustyuzhanin 2008-12-17 19:27:58 UTC
I've wrote patch, fixing this problem.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-12-18 13:27:20 UTC
Reassigning to netmon herd.

Anton, did you send this patch upstream as well?
Comment 5 Anton S. Ustyuzhanin 2008-12-18 15:21:37 UTC
(In reply to comment #4)
> Reassigning to netmon herd.
> 
> Anton, did you send this patch upstream as well?
> 

Yes i did.
I've sent it to darkstat developer.
Comment 6 Anton S. Ustyuzhanin 2009-01-04 16:51:19 UTC
(In reply to comment #4)
> Reassigning to netmon herd.
> Anton, did you send this patch upstream as well?

well, darkstat developer has accepted my patch:

***EMAIL***
On Thu, Dec 18, 2008 at 02:20:28AM +0600, Anton S. Ustyuzhanin wrote:
> Hi Emil!
> 
> I wrote little patch for your darkstat.
> This patch makes possible to gather statistic from
> OpenVPN TUN interfaces.
> It uses DLT_RAW datalink.
> 
> When i tried to run darkstat -i tun0, i saw error: unknown linktype 12,
> so i wrote this patch. May be you will accept it for future version of darkstat.

Looks good!  Thanks for doing this, it'll be in the next release!
For now it's in my private git repo:

$ git clone http://dmr.ath.cx/git/darkstat-wip

--Emil
***END OF EMAIL***
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2009-01-05 20:07:07 UTC
Thank you Anton. Updated darkstat version with this patch was added to the tree.