From owner-freebsd-questions Sun Mar 4 1: 8:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from daedalus.cs.brandeis.edu (daedalus.cs.brandeis.edu [129.64.3.179]) by hub.freebsd.org (Postfix) with ESMTP id DCB2837B718 for ; Sun, 4 Mar 2001 01:08:36 -0800 (PST) (envelope-from meshko@daedalus.cs.brandeis.edu) Received: from localhost (meshko@localhost) by daedalus.cs.brandeis.edu (8.9.3/8.9.3) with ESMTP id EAA04166 for ; Sun, 4 Mar 2001 04:08:31 -0500 Date: Sun, 4 Mar 2001 04:08:30 -0500 (EST) From: Mikhail Kruk To: Subject: struct pppstats Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, sorry if it's offtopic for this list, please direct me to the correct one. This is the defition of the struct pppstat from the usr/include/net/ppp_defs.h file: struct pppstat { unsigned int ppp_ibytes; /* bytes received */ unsigned int ppp_ipackets; /* packets received */ unsigned int ppp_ierrors; /* receive errors */ unsigned int ppp_obytes; /* bytes sent */ unsigned int ppp_opackets; /* packets sent */ unsigned int ppp_oerrors; /* transmit errors */ }; Shouldn't it be u_long instead? Or is this sturct used at all? I've stumbled into this problem when I was looking at pppload (/usr/ports/net/pppload) trying to fix it so that it would handle large (> int) amounts of traffic. Now I can't find any place which would use this structures, but if it's used by anything it should be u_long. TIA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message