From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11454 invoked by alias); 16 Jan 2004 19:53:39 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 11355 invoked from network); 16 Jan 2004 19:53:38 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 16 Jan 2004 19:53:38 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Aha27-0000rV-00; Fri, 16 Jan 2004 20:53:31 +0100 Date: Fri, 16 Jan 2004 19:53:00 -0000 To: sebastien Couret Cc: ecos-discuss@sources.redhat.com Message-ID: <20040116195331.GB14261@lunn.ch> Mail-Followup-To: sebastien Couret , ecos-discuss@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] IP adress Get and Set (SIOCSIFADDR problem ? ) X-SW-Source: 2004-01/txt/msg00134.txt.bz2 > 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