This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: IP adress Get and Set (SIOCSIFADDR problem ? )
- From: Andrew Lunn <andrew at lunn dot ch>
- To: sebastien Couret <sebastien dot couret at elios-informatique dot fr>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 Jan 2004 20:53:31 +0100
- Subject: Re: [ECOS] IP adress Get and Set (SIOCSIFADDR problem ? )
- References: <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