From: Julien T. <jul...@ly...> - 2003-11-07 12:57:41
|
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) Date: Fri, 31 Oct 2003 16:21:22 -0600 From: Burton M. Strauss III <Bu...@nt...> Reply-To: nt...@un... Organization: Centro di Servizi per la rete di Ateneo - Pisa - Italy To: <ntop@Unipi.IT> CC: <jul...@ly...> 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.p...@po...> */ _mtuSize[DLT_EN10MB] = 1500+sizeof(struct ether_header) /* Ethernet (10Mb) */; _headerSize[DLT_EN10MB] = sizeof(struct ether_header); ... -----Burton |