public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] DHCP shuts down Ethernet device?
@ 2001-04-23 10:38 Grant Edwards
  2001-04-23 11:30 ` Hugo Tyson
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2001-04-23 10:38 UTC (permalink / raw)
  To: ecos-discuss

I just discovered that when the DHCP task fails to find a
server, it then shuts down the Ethernet driver using the code:

    // Shut down interface so it can be reinitialized
    ifr.ifr_flags &= ~(IFF_UP | IFF_RUNNING);
    if (ioctl(s, SIOCSIFFLAGS, &ifr)) { /* set ifnet flags */
        perror("SIOCSIFFLAGS down");   
        return false;
        }

This generates a call to the _stop() method in the Ethernet
driver.

I realise that if DHCP fails, the IP stack needs to be shut
down, but stopping the ethernet device entirely keeps non-IP
stuff from working.  Does the DHCP code assume that there are
no non-IP network protocols, or is the above supposed to shut
down only IP networking on the device?  The other drivers I've
looked at all seem to shut off the interface completely.

I think I'm going to have to either comment out the above call,
or make my Ethernet driver's _stop() method into a noop...

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-04-23 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 10:38 [ECOS] DHCP shuts down Ethernet device? Grant Edwards
2001-04-23 11:30 ` Hugo Tyson
2001-04-23 12:27   ` Jonathan Larmour
2001-04-23 13:35     ` Grant Edwards

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).