From owner-freebsd-stable@FreeBSD.ORG Mon May 19 23:24:26 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58C3B37B401 for ; Mon, 19 May 2003 23:24:26 -0700 (PDT) Received: from ns1.itga.com.au (ns1.itga.com.au [202.53.40.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BE843F75 for ; Mon, 19 May 2003 23:24:25 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns1.itga.com.au (8.12.9/8.12.9) with ESMTP id h4K6O7m2031836; Tue, 20 May 2003 16:24:07 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id QAA20280; Tue, 20 May 2003 16:24:07 +1000 (EST) Message-Id: <200305200624.QAA20280@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: "Andy Gilligan" In-reply-to: Your message of Tue, 20 May 2003 06:33:29 +0100. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 20 May 2003 16:24:07 +1000 Sender: gnb@itga.com.au cc: freebsd-stable@freebsd.org Subject: Re: 4GB limit with netstat X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 06:24:26 -0000 andy@evo6.org said: > How much would need to change in either the kernel or netstat to make > > 4GB possible? At the very least: - edit sys/net/if.h & change struct if_data entries to u_int64_t. - edit usr.bin/netstat/if.c intpr() & change variables to be u_int64_t and use %ull in printf strings - redo all the layouts in if.c to handle the wider fields - recompile everything in the entire system - kernel, world, all ports that might look at network interfaces or routing tables, etc - hope that the broken binary compatibility doesn't hurt too bad