public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to deconfigure an interface?
@ 2009-08-31 16:58 Stanislav Meduna
  2009-09-01  8:59 ` [ECOS] " Tarmo Kuuse
  0 siblings, 1 reply; 4+ messages in thread
From: Stanislav Meduna @ 2009-08-31 16:58 UTC (permalink / raw)
  To: eCos Discussion

Hi,

I'd like to be able to change an IP address of an interface
without reboot. The comment at init_net says

  // [Re]initialize the network interface with the info passed from BOOTP

however, the new provided address is _added_ to the interface
and the interface responds to both old and new IP address afterwards.

The same happens if I try to set the address using SIOCSIFADDR.
Is this the intended behaviour? Shouldn't the SIFADDR
change the address and AIFADDR add a new one?


Is there a way to bring the IP stack back to the clean
state, or does one needs to deconfigure the interface
step-by step by removing addresses already configured
using SIOCDIFADDR (which works)?

I tried to look at the bootp code, but my suspicion is
that if the BOOTP server assigns a new address, the same
thing will happen - I do not have the environment to
confirm this.

I am using the FreeBSD networking stack.

Thanks
-- 
                                  Stano

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

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

end of thread, other threads:[~2009-09-01 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-31 16:58 [ECOS] How to deconfigure an interface? Stanislav Meduna
2009-09-01  8:59 ` [ECOS] " Tarmo Kuuse
2009-09-01  9:59   ` Stanislav Meduna
2009-09-01 13:59     ` Tarmo Kuuse

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