i'm testing ntop2 (2.2.95 to be precise on linux) to monitor some
openvpn tunnel. one question arise: how could ntop get
Headersize/mtu/maybe others from openvpn/proc/else ?
Thanks & Regards
Julien
-------- Original Message --------
Subject: [Ntop] Unknown DLT types (was a useless title)
List-Post: openvpn-devel@lists.sourceforge.net
Date: Fri, 31 Oct 2003 16:21:22 -0600
From: Burton M. Strauss III <bur...@ntopsupport.com>
Reply-To: n...@unipi.it
Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy
To: <n...@unipi.it>
CC: <julien.tou...@lycos.com>
If you can figure out the data link level header length and the associated
DLT code, you can try adding them to the table in globals-core.c at 380ff:
_mtuSize[DLT_NULL] = 8232 /* no
link-layer encapsulation */;
_headerSize[DLT_NULL] = CONST_NULL_HDRLEN;
/* 1500 + 14 bytes header Courtesy of Andreas Pfaller
<a.pfal...@pop.gun.de> */
_mtuSize[DLT_EN10MB] = 1500+sizeof(struct ether_header) /* Ethernet
(10Mb) */;
_headerSize[DLT_EN10MB] = sizeof(struct ether_header);
...
-----Burton