From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23953 invoked by alias); 28 Jun 2007 15:23:50 -0000 Received: (qmail 23945 invoked by uid 22791); 28 Jun 2007 15:23:49 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Jun 2007 15:23:45 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 9C38F19500FA; Thu, 28 Jun 2007 09:23:43 -0600 (MDT) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 44A6E19500CD; Thu, 28 Jun 2007 09:23:40 -0600 (MDT) Message-ID: <4683D27B.6030106@mlbassoc.com> Date: Thu, 28 Jun 2007 15:48:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Grant Edwards CC: eCos Discussion References: <19489034.1182961244153.JavaMail.root@ps22> <4682ECF0.2010303@mlbassoc.com> <68185b500706280123td8b1f42ib855ab4d511ba68a@mail.gmail.com> <4683BC51.5030502@mlbassoc.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Re: [ECOS] Re: Interfacing directly to the low level ethernet driver, how?? X-SW-Source: 2007-06/txt/msg00273.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Grant Edwards wrote: > 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. > Your comments, while they make sense about eCos in general, aren't helping. I want to know why Michele thinks he needs to write his own stack (that's what his questions were about). Do you have your cyg_io code? Can you contribute it? As for the network stack changing - I don't see that happening anytime soon. The last time was 5 years ago and there's not a great impetus for change now. It makes sense to me to fix things that are missing or broken, rather than inventing new ways of doing things. - -- - ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world - ------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGg9J6maKbSsQGV8ARAjNQAKCdOYuaAJgDiNYe4MpIdN18Z0ue1ACZAYrl LchvSjlG6a0qD5Brfvs+fv4= =ws48 -----END PGP SIGNATURE----- -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss