public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Laurie Gellatly <laurie.gellatly@netic.com>
To: Grant Edwards <grant.b.edwards@gmail.com>
Cc: "ecos-discuss@sources.redhat.com" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS]  Re: connect ethernet cable at run-time
Date: Fri, 25 Sep 2009 03:36:00 -0000	[thread overview]
Message-ID: <C7357402-5D0A-4EC6-9AC5-2C91C64BDAA8@netic.com> (raw)
In-Reply-To: <h9hcj7$aru$2@ger.gmane.org>


On 25/09/2009, at 1:14 PM, Grant Edwards <grant.b.edwards@gmail.com>  
wrote:

> On 2009-09-25, Laurie Gellatly <laurie.gellatly@netic.com> wrote:
>
>> With my project I found some interesting things with DHCP and
>> network cables. If the network cable was unplugged at startup
>> then there is no IP address. I found that I could run out of
>> file handles
>
> Does that happen because of something the DHCP client task is
> doing?
It's a little time ago now but from memory I changed the client  
behaviour.
>
>> and that DHCPinit call would never return even if the cable
>> was later inserted.  I had to work around that and then
>> regularly call init_all_network_interfaces in the main TCP
>> listening task just after it also fed the watchdog if the IP
>> address was 0.0.0.0.
>
> Wouldn't fixing the DHCP client code be a better approach?
So I did change that but the solution required more. So first I had to  
make it return even if no address could be obtained (not doing so made  
the watchdog bark).
>
>> Switching in and out of DHCP or static addressing was also
>> coded.
>
> Most of our products require you to reboot the device after
> changing the IP configuration.
>
Once i'd made these changes my web server (main TCP task) then knew it  
could not do it's work and instead tries to obtain an address on a  
regular basis. The net result is that switching DHCP on or off can be  
achieved without a reboot.
> -- 
> Grant
>
>
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos- 
> discuss
>
          ...Laurie:{)

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

  reply	other threads:[~2009-09-25  3:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 10:34 [ECOS] " Lars Dahlin
2009-09-24 11:45 ` Edgar Grimberg
2009-09-24 14:42 ` [ECOS] " Grant Edwards
2009-09-24 16:26   ` Jonathan Larmour
2009-09-24 16:32     ` Grant Edwards
2009-09-25  0:11       ` Jonathan Larmour
2009-09-25  1:23         ` Laurie Gellatly
2009-09-25  3:20           ` Grant Edwards
2009-09-25  3:36             ` Laurie Gellatly [this message]
2009-09-25 13:16           ` Jonathan Larmour
2009-09-25 14:54             ` Grant Edwards
2009-09-26  8:12               ` [ECOS] Re: connect Ethernet " Laurie Gellatly
     [not found]               ` <26548.8079087392$1253952764@news.gmane.org>
2009-09-26 15:11                 ` Grant Edwards
2009-09-27 22:06               ` [ECOS] Re: connect ethernet " Jonathan Larmour
2009-09-25  3:12         ` Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C7357402-5D0A-4EC6-9AC5-2C91C64BDAA8@netic.com \
    --to=laurie.gellatly@netic.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=grant.b.edwards@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).