From owner-freebsd-net@FreeBSD.ORG Mon Mar 21 13:06:08 2005 Return-Path: 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 5A9B116A4CE for ; Mon, 21 Mar 2005 13:06:08 +0000 (GMT) Received: from spinett.bth.se (spinett.bth.se [194.47.129.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 663C643D2D for ; Mon, 21 Mar 2005 13:06:07 +0000 (GMT) (envelope-from Patrik.Arlos@bth.se) Received: from Trantor (spinett.bth.se [194.47.129.13])j2LD64qd025326 for ; Mon, 21 Mar 2005 14:06:05 +0100 From: "Patrik Arlos" To: Date: Mon, 21 Mar 2005 14:05:48 +0100 Organization: Blekinge Institute of Technology Message-ID: <001001c52e16$b3e8bde0$73942fc2@Trantor> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Scanned-By: MIMEDefang 2.51 on 194.47.129.13 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Sending Ethernet frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 13:06:08 -0000 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