From: yogi Subject: Re: [Autotest] [PATCH] KVM test: Add support for ipv6 addresses Date: Thu, 25 Feb 2010 19:11:41 +0530 Message-ID: <1267105301.4742.27.camel@yogi-laptop> References: <1266984656-4036-1-git-send-email-lmr@redhat.com> <6ac58f4f1002232016n78d86867ke6b2f10cc7deda47@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: autotest@test.kernel.org, kvm@vger.kernel.org, Yogananth Subramanian To: Lucas Meneghel Rodrigues Return-path: Received: from e9.ny.us.ibm.com ([32.97.182.139]:54159 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932535Ab0BYNls (ORCPT ); Thu, 25 Feb 2010 08:41:48 -0500 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by e9.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id o1PDVv3H007315 for ; Thu, 25 Feb 2010 08:31:57 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o1PDfjtV122546 for ; Thu, 25 Feb 2010 08:41:45 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o1PDficd013457 for ; Thu, 25 Feb 2010 08:41:45 -0500 In-Reply-To: <6ac58f4f1002232016n78d86867ke6b2f10cc7deda47@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2010-02-24 at 01:16 -0300, Lucas Meneghel Rodrigues wrote: > H i Yogi, I have read and rebased your patch against current trunk. I > have one doubt: I noticed that the tcpdump command you use to monitor > traffic is basically all traffic that goes to network routers > > /usr/sbin/tcpdump -npv ip6 -i any 'dst net ff02::2' > > However, the IPv4 implementation filters the traffic to the dhcp/bootp > port, 68. Therefore the ipv6 mapper captures more (non necessarily > useful) mappings than the ipv4 version. I made some brief research and > couldn't figure out how to do it. Do you think it's possible to refine > the tcpdump command to make it look only on the dhp request port (68)? > Hello Lucas, thanks for reviewing my patches for ipv6. Following tcpdump command will capture only the icmp6 packets and not all the ipv6 packets tcpdump -npv -i any icmp6 and 'dst net ff02::2' Since the patch uses ip6 link local address, we are looking for router solicitation messages. Thanks Yogi > On Wed, Feb 24, 2010 at 1:10 AM, Lucas Meneghel Rodrigues > wrote: > > > > This patch enables ipv6 address support in kvm-autotest. > > The patch adds a new dictionary called "address6_cache" for ip6 address. > > Tcpdump is used to create this cache of link-local ipv6 address. > > > > Link-local ipv6 address is used because it eliminates to need to create > > complex configuration on both the host and the guest. > > > > The ipv6 address for a guest can be obtained by using the new function > > get_address6 in kvm_vm.py > > > > Signed-off-by: Yogananth Subramanian > > --- > > client/tests/kvm/kvm_preprocessing.py | 29 ++++++++++++++++++- > > client/tests/kvm/kvm_utils.py | 28 +++++++++++++++++++ > > client/tests/kvm/kvm_vm.py | 49 +++++++++++++++++++++++++++++++-- > > 3 files changed, 101 insertions(+), 5 deletions(-) > > > > > > _______________________________________________ > > Autotest mailing list > > Autotest@test.kernel.org > > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > > > > > > >