From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18750 invoked by alias); 28 Jun 2007 15:12:32 -0000 Received: (qmail 18641 invoked by uid 22791); 28 Jun 2007 15:12:31 -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; Thu, 28 Jun 2007 15:12:25 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I3vVz-0004pO-Fv for ecos-discuss@sources.redhat.com; Thu, 28 Jun 2007 17:02:36 +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 ; Thu, 28 Jun 2007 17:02:35 +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 ; Thu, 28 Jun 2007 17:02:35 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Thu, 28 Jun 2007 15:34:00 -0000 Message-ID: References: <19489034.1182961244153.JavaMail.root@ps22> <4682ECF0.2010303@mlbassoc.com> <68185b500706280123td8b1f42ib855ab4d511ba68a@mail.gmail.com> <4683BC51.5030502@mlbassoc.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: Interfacing directly to the low level ethernet driver, how?? X-SW-Source: 2007-06/txt/msg00272.txt.bz2 On 2007-06-28, Gary Thomas wrote: >>>> I'm about to develop a raw ethernet driver. After spending >>>> quite a lot of time reading the forum and analyzing the code I >>>> finally decide to implement a raw I/O API as suggested by >>>> Grant Edwards here: >>> >>>> http://www.cygwin.com/ml/ecos-discuss/2003-06/msg00017.html >>> >>> What's the point of this? Couldn't you solve your problem by >>> using RAW sockets? Yes, if RAW sockets were supported by eCos. >>> The reason for asking is just to point out that your ethernet >>> "wire" will be pretty useless except for whatever raw traffic >>> you push across it. No, the raw I/O API peacefully coexists with the normal network stack API. All network traffic that doesn't use the configured proprietary Ethernet protocol number works the same as always. >> Could you plase be more precise? I don't thing I got your >> question, I thought that the version of FreeBSD on eCos didn't >> implement RAW sockets. Or at least that's what I understood >> from previous threads here. Am I wrong? > > Indeed, RAW sockets are not [currently] implemented. My > question was what do you need that RAW sockets cannot provide? > I think it would be a *much* simpler task to get RAW sockets > working within the existing stack than to write your own > networking layer. It's a pretty thin layer -- it just allows you to queue up outbout packets with cyg_io_write() and read from a queue of inboung packets (with a specified protocol type) using cyg_io_read(). Using RAW sockets would be nice, but adding a little code to an in-house driver is logistically easier than adding raw socket support to an "off-the-shelf" network stack and then turning around and doing it all again a couple years later when the network stack changes. -- Grant Edwards grante Yow! Now that I have my at "APPLE", I comprehend COST visi.com ACCOUNTING!! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss