public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: sebastien Couret <sebastien.couret@elios-informatique.fr>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] IP adress Get and Set (SIOCSIFADDR problem ? )
Date: Fri, 16 Jan 2004 19:53:00 -0000	[thread overview]
Message-ID: <20040116195331.GB14261@lunn.ch> (raw)
In-Reply-To: <MELELIOSCHJr1Wtyi670000008d@melelios.dmz.elios-informatique.fr>

> So ioctl calls always return a no error value, but IP adress stays the same 
> as shown by the result gaved by the Linux Synthetic Target :
> 
> <
> IP Adress of 'eth0' is '10.0.0.254' 
> IP address of 'eth0' set to '1.2.3.4' 
> IP Adress of 'eth0' is '10.0.0.254'

Im guessing here....but before you do a set, remove the old address.
What could be happening is you are assigning multiple addresses to the
same interface. Your get function is also only returning the first
address. If you were to ask it for more addresses i think you will
then find it also returns 1.2.3.4.

Try calling show_network_tables().

     Andrew

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

  reply	other threads:[~2004-01-16 19:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16 17:05 sebastien Couret
2004-01-16 19:53 ` Andrew Lunn [this message]
2007-09-29 21:35 Xun Yuan
2007-09-29 21:46 ` Alok Singh
2007-10-01 23:55   ` Xun Yuan

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=20040116195331.GB14261@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=sebastien.couret@elios-informatique.fr \
    /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).