public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Stanislav Meduna <stanislav.meduna@gmail.com>
To: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] How to deconfigure an interface?
Date: Mon, 31 Aug 2009 16:58:00 -0000	[thread overview]
Message-ID: <4A9C0111.70300@gmail.com> (raw)

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

             reply	other threads:[~2009-08-31 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 16:58 Stanislav Meduna [this message]
2009-09-01  8:59 ` [ECOS] " Tarmo Kuuse
2009-09-01  9:59   ` Stanislav Meduna
2009-09-01 13:59     ` Tarmo Kuuse

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=4A9C0111.70300@gmail.com \
    --to=stanislav.meduna@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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).