This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Dynamic IP/DHCP/Routing the 'right way'
- From: "Joe Porthouse" <jporthouse at toptech dot com>
- To: <laurie dot gellatly at netic dot com>, <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 28 Jul 2006 21:52:32 -0400
- Subject: RE: [ECOS] Dynamic IP/DHCP/Routing the 'right way'
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=toptech.com; s=MDaemon; t=1154137956; x=1155329556; q=dns; h=DomainKey-Signature: Received:Reply-To:From:To:Subject:Date:Organization:MIME-Version: Content-Type:Content-Transfer-Encoding:Thread-Index:In-Reply-To: Message-ID; b=dHw13L+HS1fJgqErnIR0M9U/hzV5UMXZSyU4McQm7RIOM/1DRU R//YkLttxC3EOBCGrHGBcMXElw4ynqchpD+kAYdC/F1NZsGopRrmfALWYvmO+su/ BNQRje4/Q675lIMNADEhvWfeJk9o6zZIasJ8fr99nSMQmIdd0alplv+8M=
- Reply-to: <jporthouse at toptech dot com>
Laurie,
See a copy, definitely. Many thanks!!! :)
I have been digging through eCos files attempting to get an
understanding of how things are working with the network, but it's kinda
like walking through an unfamiliar house with only a flashlight to show you
the way. I have not been able to see the entire picture yet.
I was originally looking at the DHCP code and saw during a renewal
it was shutting down the interface just before calling net_init() again.
Still having lots to do, I would rather use a solution that has worked for
someone else.
BTW, grepping through the eCos packages I could not find StackInit,
IP_SetIP, or IP_SetMask. Is there another package I need to install or are
these your functions?
Thanks,
Joe Porthouse
Toptech Systems, Inc.
Longwood, FL 32750
-----Original Message-----
From: Laurie Gellatly [mailto:laurie.gellatly@netic.com]
Sent: Friday, July 28, 2006 6:01 PM
To: jporthouse@toptech.com; ecos-discuss@ecos.sourceware.org
Subject: RE: [ECOS] Dynamic IP/DHCP/Routing the 'right way'
Hi Joe,
Taking Andrew's suggestion I rolled my own. Would you like to see a copy?
...Laurie:{)
-----Original Message-----
From: Joe Porthouse [mailto:jporthouse@toptech.com]
Sent: Saturday, 29 July 2006 7:30 AM
To: ecos-discuss@ecos.sourceware.org; 'Laurie Gellatly'
Subject: RE: [ECOS] Dynamic IP/DHCP/Routing the 'right way'
Laurie,
Did you find a solution that worked? I'm also dealing with this same issue.
Thanks,
Joe Porthouse
Toptech Systems, Inc.
Longwood, FL 32750
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Andrew Lunn
Sent: Tuesday, June 06, 2006 7:19 AM
To: Laurie Gellatly
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Dynamic IP/DHCP/Routing the 'right way'
On Tue, Jun 06, 2006 at 09:09:29PM +1000, Laurie Gellatly wrote:
> Hi Andrew,
> Thanks for the swift response.
> SNTP - yes. Thanks for the tips there and with DNS, I'll look at those.
>
> init_net() was not sufficient. It left the old addresses active. I've
> combined StackInit and IP_SetIP, IP_SetMask to remove the old address
> and mask. Still think the routing is not being updated, but before I
> launched into debugging all that I wanted to ensure I wasn't
> re-inventing the wheel.
I think this is a new wheel, at least i've not seen a public available
wheel which does this.
cyg_route_reinit() might help with your routing problem.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss