From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1a6cJi-00079j-Na for ltp-list@lists.sourceforge.net; Wed, 09 Dec 2015 10:49:50 +0000 Received: from aserp1040.oracle.com ([141.146.126.69]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1a6cJh-0005YV-PQ for ltp-list@lists.sourceforge.net; Wed, 09 Dec 2015 10:49:50 +0000 Message-ID: <56680852.9010103@oracle.com> Date: Wed, 09 Dec 2015 13:54:10 +0300 From: Alexey Kodanev MIME-Version: 1.0 References: <1246557963.484611449651576462.JavaMail.weblogic@epmlwas02c> In-Reply-To: <1246557963.484611449651576462.JavaMail.weblogic@epmlwas02c> Subject: Re: [LTP] [Query] Regarding network testcases List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: manjeet.p@samsung.com, ltp-list@lists.sourceforge.net Cc: "v.narang@samsung.com" , "ajeet.y@samsung.com" , pankaj.m@samsung.com Hi, On 12/09/2015 11:59 AM, Manjeet Pawar wrote: > Hi, > > I am facing issues while running some network testcases : e.g. if4-addr-change > This testcase belongs to latest (ltp-full-20150903.tar.bz2) > when I run this if4-addr-change, I exported two new env variables a) IPV4_NETWORK = "107.109.223" and IPV6_NETWORK = "fd00::1:1:1:1", b) LHOST_IFACES = eth0 and RHOST_IFACES = eth0, which is not exported in "test_net.sh" . > bacause "if4-addr-change " testcase invokes "est_net.sh". > ... > ++ echo fd00::1:1:1:1: > + ip addr add fd00::1:1:1:1:/64 dev eth0 > ip: RTNETLINK answers: Numerical result out of range > + return 2 > + ret=2 > + TST_IPV6= > + return 2 > + exit 2 > <<<<<<<<<<<<<<<<<<>>>>>>>>>>> > initiation_status="ok" > duration=13 termination_type=exited termination_id=2 corefile=no > cutime=49 cstime=627 > <<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>> > > Please check the IP addresses taken by the program, they are in wrong format. > Is there anything that I am missing to run this testcase ? . Also I tried to do manually fix to get IP addresses in correct way but that should not be done, it need many changes to be done in "test_net.sh". > This test scripts is invoked by other testcases like "network_stress.broken_ip". So all these testcases are failing. > Please suggest more detail regarding "test_net.sh". Defining IPv6 network as IPV6_NETWORK = "fd00::1:1:1:1" is not quite correct. Here you have specified the IPv6 address, not network. There are other variables that should be defined as well: LHOST_IPV4_HOST, RHOST_IPV4_HOST, LHOST_IPV6_HOST, RHOST_IPV6_HOST, i.e. host specific parts. In your case IPv6 network is "fd00::/64", and I would set vars as follows: IPV6_NETWORK = "fd00" LHOST_IPV6_HOST=":1:1:1:1" After that you will get fd00::1:1:1:1/64 address in the tests (${IPV6_NETWORK}:${LHOST_IPV6_HOST}). Best regards, Alexey > > Thanks > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list