From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad6cd-0000PV-El for qemu-devel@nongnu.org; Mon, 07 Mar 2016 20:39:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad6ca-0002HM-9Y for qemu-devel@nongnu.org; Mon, 07 Mar 2016 20:39:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad6ca-0002HA-3f for qemu-devel@nongnu.org; Mon, 07 Mar 2016 20:39:36 -0500 References: <56DD2582.607@redhat.com> <20160307112428.GC5169@var.bordeaux.inria.fr> From: Jason Wang Message-ID: <56DE2D48.7080607@redhat.com> Date: Tue, 8 Mar 2016 09:39:20 +0800 MIME-Version: 1.0 In-Reply-To: <20160307112428.GC5169@var.bordeaux.inria.fr> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCHv9 01/10] slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault Cc: Thomas Huth , zhanghailiang , Li Zhijian , Stefan Hajnoczi , Dave Gilbert , Vasiliy Tolstov , qemu-devel@nongnu.org, Gonglei , Jan Kiszka , Huangpeng , Guillaume Subiron On 03/07/2016 07:24 PM, Samuel Thibault wrote: > Jason Wang, on Mon 07 Mar 2016 14:53:54 +0800, wrote: >>> + switch (ip6->ip_nh) { >>> +#if 0 >>> + case IPPROTO_TCP: >>> + tcp_input(m, hlen, (struct socket *)NULL); >>> + break; >>> + case IPPROTO_UDP: >>> + udp_input(m, hlen); >>> + break; >>> +#endif >> This looks odd, why need this? > To pave the way for the patches after that. We can drop that from this > patch and move to the other ones if you will, I just believe it makes > reading this one easier since it explains how tcp and udp will be > plugged here. > > Samuel This lead warnings in checkpatch, maybe it's better to use comment instead?