From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4475 invoked by alias); 30 Apr 2007 13:52:35 -0000 Received: (qmail 4463 invoked by uid 22791); 30 Apr 2007 13:52:34 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Apr 2007 14:52:29 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HiWIc-0002Rn-JB for ecos-discuss@sources.redhat.com; Mon, 30 Apr 2007 15:52:18 +0200 Received: from c-76-17-159-202.hsd1.mn.comcast.net ([76.17.159.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Apr 2007 15:52:18 +0200 Received: from grante by c-76-17-159-202.hsd1.mn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Apr 2007 15:52:18 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Mon, 30 Apr 2007 13:52:00 -0000 Message-ID: References: <1177582674.805294.203270@s33g2000prh.googlegroups.com> <20070426133443.GA22158@lunn.ch> <1177738903.263455.239890@l77g2000hsb.googlegroups.com> <1177753990.919543.45310@y80g2000hsf.googlegroups.com> <1177926816.728845.292060@c35g2000hsg.googlegroups.com> <1177930381.251419.318920@y5g2000hsa.googlegroups.com> User-Agent: slrn/0.9.8.1 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Fwd: Sending raw packets on eCos X-SW-Source: 2007-04/txt/msg00169.txt.bz2 On 2007-04-30, Nick Garnett wrote: >> So I believe the frames should be sent as raw ethernet >> frames...All the handling should be done in the application. >> As I ran through the archives there were some suggestions to >> use eth_drive_write() and eth_drive_read() found in >> eth_drv.c. I think these are internal functions used by eCos, >> which cannot be used in our application. Please if you can >> mention the names of the API's for raw ethernet I/O it would >> be very helpful.. > > You have already named them above. Those are the only APIs > available. However, they are closely linked in to the BSD > stack and it will be hard to use them from application level. I too would be interested in a way to send/receive raw Ethernet packets. The products I work on have to support a propritary Ethernet protocol, and in the past we've always had to write our own Ethernet drivers that implimented a normal cyg_io_read/write() API in addition to the BSD network stack API. Obviously, some way to send/receive raw Ethernet packets (akin to socket(AF_PACKET, SOCK_RAW, protoNumer) under Linux) would save us a lot of work. -- Grant Edwards grante Yow! What's the MATTER at Sid? ... Is your BEVERAGE visi.com unsatisfactory? -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss