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: [email protected]
Date: Fri, 31 Oct 2003 16:21:22 -0600
From: Burton M. Strauss III <[email protected]>
Reply-To: [email protected]
Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy
To: <[email protected]>
CC: <[email protected]>

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
<[email protected]> */
  _mtuSize[DLT_EN10MB] = 1500+sizeof(struct ether_header)      /* Ethernet
(10Mb) */;
  _headerSize[DLT_EN10MB] = sizeof(struct ether_header);
...


-----Burton



Reply via email to