This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IP adress Get and Set (SIOCSIFADDR problem ? )


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]