Date: Mon, 01 Jul 2002 01:39:45 +0800 From: "Rafter Man" <rafter@linuxmail.org> To: FreeBSD-questions@FreeBSD.org Subject: Network programming. Message-ID: <20020630173945.4463.qmail@linuxmail.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020630173945.4463.qmail>