From owner-freebsd-questions Sun Jun 30 10:39:50 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 CBF9A37B408 for ; Sun, 30 Jun 2002 10:39:46 -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 13FF943E09 for ; Sun, 30 Jun 2002 10:39:46 -0700 (PDT) (envelope-from rafter@linuxmail.org) Received: (qmail 4464 invoked by uid 1001); 30 Jun 2002 17:39:45 -0000 Message-ID: <20020630173945.4463.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 01:39:45 +0800 From: "Rafter Man" To: FreeBSD-questions@FreeBSD.org Date: Mon, 01 Jul 2002 01:39:45 +0800 Subject: 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 Hi FreeBSD'ers I have some questions about network programming. I have “just” started on socket programming and want to write some programs like: A firewall, but how do I make the program receive ALL packets and then past some of them on to inetd or the daemon listening on that port? (with libpcap?). I have read some books/texts about FreeBSD security and networkprogramming, but if I run ftp (standalone), a firewall and tcpdump, which program get the packets first? and can you guide me to some texts about the network-packet-handling? How do I take over ICMP? I mean that I only want to see ICMP packets and send some ICMP’s back. Do I have to use RAW_SOCK or libnet to make ICMP’s? And last but not least, with “sockstat” you can get info about which user, pid, command, etc is using a port/connection, how do I do that? 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