From owner-freebsd-net Wed Dec 2 06:05:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24738 for freebsd-net-outgoing; Wed, 2 Dec 1998 06:05:12 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from obie.softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24733 for ; Wed, 2 Dec 1998 06:05:10 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id HAA22211; Wed, 2 Dec 1998 07:08:22 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <366549C1.22F0A27E@softweyr.com> Date: Wed, 02 Dec 1998 07:08:01 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Caroline Beauchamps CC: "'net@FreeBSD.ORG'" Subject: Re: References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Caroline Beauchamps wrote: > > Hello, > > I have a program made for Linux, and I want to transform it for FreeBSD. > The problem is that some of the options don't exist in FreeBSD. > What I want to do is to send an ethernet packet, so I open the following > socket: > > sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) > > But SOCK_PACKET does not exist. > Do you have an idea what I could use instead ? > Thanks in advance. > If you wish to send raw packets on the ethernet, you will have to use the Berkeley Packet Filter (bpf). It's a bit messier than the Linux raw packet interface, but works. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message