This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Dynamic IP/DHCP/Routing the 'right way'


Hi Joe,
I've attached my network_support.c file.
You'll see references to MCB... (that's my master control block structure)
that holds the devices configuration like DHCP enabled or not.
MCB.ucXXX are unsigned chars holding the IPv4 address as 4 bytes.

It only assumes a single eth0 (and not eth1) though it would be easy to add
that back in.

HTH			...Laurie:{)

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org]On Behalf Of Joe
Porthouse
Sent: Saturday, 29 July 2006 11:53 AM
To: laurie.gellatly@netic.com; ecos-discuss@ecos.sourceware.org
Subject: RE: [ECOS] Dynamic IP/DHCP/Routing the 'right way'


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

Attachment: network_support.c
Description: Binary data

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]