Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 1998 07:08:01 -0700
From:      Wes Peters <wes@softweyr.com>
To:        Caroline Beauchamps <caroline.beauchamps@bt-sys.bt.co.uk>
Cc:        "'net@FreeBSD.ORG'" <net@FreeBSD.ORG>
Subject:   Re: 
Message-ID:  <366549C1.22F0A27E@softweyr.com>
References:  <c=GB%a=_%p=BT%l=ATLAS-981202130843Z-20596@mussel.futures.bt.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?366549C1.22F0A27E>