From owner-freebsd-net Mon Jan 6 18:56:57 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8995037B401 for ; Mon, 6 Jan 2003 18:56:56 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id B204C43EB2 for ; Mon, 6 Jan 2003 18:56:55 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h072uCTc005054; Mon, 6 Jan 2003 21:56:12 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h072uB7O005053; Mon, 6 Jan 2003 21:56:11 -0500 (EST) Date: Mon, 6 Jan 2003 21:56:11 -0500 From: Craig Rodrigues To: Lev Walkin Cc: Abdul Basit , net@freebsd.org Subject: Re: raw socket/icmp-echo Message-ID: <20030107025611.GA5014@attbi.com> References: <20030105052449.K49935-100000@wireless.cs.twsu.edu> <3E1A3E92.6030607@netli.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E1A3E92.6030607@netli.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Jan 06, 2003 at 06:42:26PM -0800, Lev Walkin wrote: > Consider using libpcap - this is the portable library that uses > bpf, raw socket, packet socket or whatever packets source is available > for the particular platform. > > Pcap tutorial available here: > http://reactor-core.org/security/libpcap-tutorial.html In addition to libpcap, I think if one is interested in using raw sockets, libnet is a library that is definitely one not to miss: http://www.packetfactory.net/libnet It is a well maintained library, and has examples for ICMP and other protocols. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message