From owner-freebsd-current@FreeBSD.ORG Sun Jun 20 21:26:45 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74831106566B for ; Sun, 20 Jun 2010 21:26:45 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 099E78FC17 for ; Sun, 20 Jun 2010 21:26:44 +0000 (UTC) Received: by fxm7 with SMTP id 7so1918198fxm.13 for ; Sun, 20 Jun 2010 14:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=MeATj/RK9jSdIXzSfSWdgSYEU0i3NOp5oqxukLSmf/o=; b=RWKOmuvnrnlAzlrgd5Dm65FUcqK46/zzrqYgztds87PAwVLgq7cqmb/gFxmoWBWZMY ypWbUY/XM/zfgfYjnWcKoMWFhmeN5nMcf8aX/Yr7VZT1/esFTo7y4A+8xw+B5H4csXkZ WKAupA27UcenPiCzG6gmKwDS5ugrD9ONMn6BQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=usCnXBvZEjz4BF1VZ3LFlYy8QqpcDXrbcNZLMBiE5h9hevd/rKu8ZGBUCR/ZMDntMJ jbiYQpK8feU3uuHZ4SiZRNMSyPVvAI8M4WbFaB9bMXGiCa4cTelhFlZB6jMDrU5Z+JtD cUFmMaTlpizhBhekht6MbhLu89j5FS5e+pryM= MIME-Version: 1.0 Received: by 10.223.20.216 with SMTP id g24mr4163321fab.63.1277067472901; Sun, 20 Jun 2010 13:57:52 -0700 (PDT) Sender: pali.gabor@googlemail.com Received: by 10.223.104.2 with HTTP; Sun, 20 Jun 2010 13:57:52 -0700 (PDT) Date: Sun, 20 Jun 2010 22:57:52 +0200 X-Google-Sender-Auth: 2nEstN3jPT07mPmDbfp0g-Ad1QI Message-ID: From: Gabor PALI To: current@freebsd.org, hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: [RFC] Changes in stat structures X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2010 21:26:45 -0000 Hello, I would like to integrate my Google Summer of Code project from the last year [1]. In brief, it was about converting netstat(1) into a library and providing a relatively clean API to access various networking statistics available in the kernel. The project is far from being complete, and it needs review but I decided to split my large patch into smaller pieces and add the results continuously to the FreeBSD src/ repository, otherwise it might vanish. I do not have a src/ commit bit, thus I am also looking for a sponsor for my changes who approves or commits them. My plan of integration is simple: apply the necessary modifications to the kernel, add the sysctl export routines and data structures, add the library (called libnetstat(3)), then adapt and add applications (netstat(1), bsnmpd(1), nettop(1), etc.) to use it. This way I could get some review and continue the development of this library in an interactive style. The first piece of this set is available on my FreeBSD homepage as a separate patch [2], which technically proposes to a "standardization" for the counter values so they could be accessed from both 32-bit and 64-bit environments without problems (via kvm(3) or sysctl(3)). However, I do not know too much about the potential consequences or how such a change should be handled in the tree. For more information (and the complete patch), see the project's wiki page [3]. Any feedback is appreciated. Nothing is carved into stone, I am very open to comments :) Thank you! Cheers, :g [1] http://wiki.freebsd.org/PGJSoC2009 [2] http://people.freebsd.org/~pgj/libnetstat/libnetstat-sys.latest.diff [3] http://wiki.freebsd.org/LibNetstat