From owner-freebsd-questions Sun Jun 30 14:10:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9303637B400 for ; Sun, 30 Jun 2002 14:10:50 -0700 (PDT) Received: from ws4-4.us4.outblaze.com (205-158-62-105.outblaze.com [205.158.62.105]) by mx1.FreeBSD.org (Postfix) with SMTP id 35E2343E09 for ; Sun, 30 Jun 2002 14:10:50 -0700 (PDT) (envelope-from rafter@linuxmail.org) Received: (qmail 29594 invoked by uid 1001); 30 Jun 2002 21:10:50 -0000 Message-ID: <20020630211049.29593.qmail@linuxmail.org> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [80.197.219.206] by ws4-4.us4.outblaze.com with http for rafter@linuxmail.org; Mon, 01 Jul 2002 05:10:49 +0800 From: "Rafter Man" To: Cc: freebsd-questions@freebsd.org Date: Mon, 01 Jul 2002 05:10:49 +0800 Subject: Re: Network programming. X-Originating-Ip: 80.197.219.206 X-Originating-Server: ws4-4.us4.outblaze.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: Fernando Gleiser > In general, firewall code belongs in the kernel. take a look ta ip_input.c > and ip_output.c and you'll see haw this is done by ipfilter and ipfw. > The absolute reference of the TCP/IP stack is Wright and Stevens "TCP/IP > Illustrated, Vol 2." The 15000 lines of code of the 4.4BSD stack in a very > annotated way. A must for kernel network programmers. For everything else, > Stevens "Unix Network Programming, Vol 1" is the bible. Ok, I'll buy them. > If you want to use sockstat to find out: man sockstat. > If you want to write a program which does the same as sockstat, take a > look at the source of netstat and fstat. sockstat is a perl script which > reads the output of both netstat and fstat and merges them. Ok, I'll look into that. > Hope this helps. It does, thank you :-) Best regards Rafter -- Get your free email from www.linuxmail.org Powered by Outblaze To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message