From owner-soc-status@FreeBSD.ORG Sun Jun 14 22:18:00 2009 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69000106564A; Sun, 14 Jun 2009 22:18:00 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from mail-fx0-f206.google.com (mail-fx0-f206.google.com [209.85.220.206]) by mx1.freebsd.org (Postfix) with ESMTP id 9C35A8FC0C; Sun, 14 Jun 2009 22:17:59 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: by fxm2 with SMTP id 2so62024fxm.43 for ; Sun, 14 Jun 2009 15:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ooMdfEHB8OU0ZsO1hoxMvWm3YWJS5jy8hFcdBWlLKIk=; b=Np+mLoDcK/9WKJwMNG5i/pTrgHRRyXCiWuaE5PkhVwAfbJS3ku4O8dc7U1SojlGVWG nOAhkyksOvl85682j29aF2k9GRgqkGhLdOh+ZL9tlRj80OGThzlc9mHoqeTenQtZVCeu cplbJHqHWydwfxjD7zIWeX+pXzAi+2wSbsZ1g= 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:cc:content-type:content-transfer-encoding; b=B/BPNOOKi5S4oISRScWrYrANLrS9QsByj7pjL3mM+8Lil0rwHfUsI5uPtEQgVpOWOE pgXK34nUPrm8zX+xfaQkaK8U6piaMbfe/ZhfxPowxN2OlWfEObU5WVGKu5W2gARGyFlX CY7QB2AevhsWwTbVgvThvqUCxcnN072jp5Z5A= MIME-Version: 1.0 Sender: pali.gabor@googlemail.com Received: by 10.223.118.141 with SMTP id v13mr3873287faq.26.1245017878656; Sun, 14 Jun 2009 15:17:58 -0700 (PDT) Date: Mon, 15 Jun 2009 00:17:58 +0200 X-Google-Sender-Auth: b80dd4c293e0b6b2 Message-ID: <685a6ef80906141517y70ef20f3w31e1cef15bc5563@mail.gmail.com> From: Gabor PALI To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oleksandr Tymoshenko , Robert Watson Subject: libstat status 2 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 22:18:00 -0000 Hello there, During the last week, I worked on libnetstat and moved many functions from netstat(1) to that library and built up a simple interface for them. Thanks to this, now I have abstractions for representing active unix domain and inet4/inet6 connections (called socket_type and addr_type), and I also have a modified version of netstat(1) to use the implemented library functions. I have not tested it too much (yet), but it works well in simple cases. You can reach both of them from Perforce [1]. Plans for the next week: - Implement some further optimizations for the library, solve the problems noted in the sources - Investigate the possibilities of replacing the interface based on sysctl(8) for live monitoring - Create a simple tool using libnetstat for monitoring active connections, similar to top(1) Cheers, :g [1] http://perforce.freebsd.org/changeList.cgi?FSPC=%2F%2Fdepot%2Fprojects%2Fsoc2009%2Fpgj_libstat%2F...&ignore=GO%21