Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2005 14:05:48 +0100
From:      "Patrik Arlos" <Patrik.Arlos@bth.se>
To:        <freebsd-net@freebsd.org>
Subject:   Sending Ethernet frames
Message-ID:  <001001c52e16$b3e8bde0$73942fc2@Trantor>

next in thread | raw e-mail | index | archive | help
Hi,

=20

I'm trying to send 'raw' Ethernet frames. I have however not found any
examples of how to do this in BSD.=20

Is it possible to open a 'ethernet' socket, similar to a AF_INET?  I =
need to
be able to control the destination address and type/len field in the
Ethernet header.=20

In Linux it is possible open a SOCK_RAW and bind it to a particular
interface, I've tried to use the sockadd_dl but in this case bind dies =
with
error 22, any way to do this?=20

=20

=20

/Patrik

=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c52e16$b3e8bde0$73942fc2>