From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actSr-0002Zf-U9 for qemu-devel@nongnu.org; Mon, 07 Mar 2016 06:36:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1actSo-0008Pf-Nc for qemu-devel@nongnu.org; Mon, 07 Mar 2016 06:36:41 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:41012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1actSo-0008PW-Hd for qemu-devel@nongnu.org; Mon, 07 Mar 2016 06:36:38 -0500 Date: Mon, 7 Mar 2016 12:36:35 +0100 From: Samuel Thibault Message-ID: <20160307113635.GD5169@var.bordeaux.inria.fr> References: <56DD2647.7060003@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56DD2647.7060003@redhat.com> Subject: Re: [Qemu-devel] [PATCHv9 03/10] slirp: Adding IPv6 UDP support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: Thomas Huth , zhanghailiang , Li Zhijian , Stefan Hajnoczi , Dave Gilbert , Vasiliy Tolstov , qemu-devel@nongnu.org, Gonglei , Jan Kiszka , Huangpeng , Guillaume Subiron Jason Wang, on Mon 07 Mar 2016 14:57:11 +0800, wrote: > Part of the codes looks duplicated with ipv4 version. Any chances to > merge them like tcp? The duplication is actually quite small: accessing the ip length is different, filling the address is different, etc. So there are differences all along the code. Is it really worth the factorization? It seems to me that it would actually *reduce* lisibility. Samuel