From owner-freebsd-net Wed Dec 2 05:47:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA22614 for freebsd-net-outgoing; Wed, 2 Dec 1998 05:47:45 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from arthur.axion.bt.co.uk (arthur.axion.bt.co.uk [132.146.5.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA22606 for ; Wed, 2 Dec 1998 05:47:19 -0800 (PST) (envelope-from graeme.brown@bt-sys.bt.co.uk) Received: from rambo (actually rambo.futures.bt.co.uk) by arthur (local) with SMTP; Wed, 2 Dec 1998 13:46:50 +0000 Received: from maczebedee (actually macsmtp) by rambo with SMTP (PP); Wed, 2 Dec 1998 13:49:56 +0000 Message-ID: Date: 2 Dec 1998 13:46:41 +0100 From: Graeme Brown Subject: FW: How can I write a packet directly to an Ethernet NIC ?layer To: "FreeBSD-Net (FreeBSD.Org) List" X-Mailer: Mail*Link SMTP for Quarterdeck Mail; Version 4.0.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org _______________________________________________________________________________ To: 'net@FreeBSD.ORG' From: Caroline Beauchamps on Wed, Dec 2, 1998 1:11 pm 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. Caroline Beauchamps >Mobility Research Unit >caroline.beauchamps@bt-sys.bt.co.uk >B55-131B >BT Laboratories >Martlesham Heath tel : +44 1473 649 115 >IPSWICH IP5 3RE (UK) fax : +44 1473 646 885 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message