From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8jOe-0006kI-Dr for qemu-devel@nongnu.org; Tue, 15 Dec 2015 01:47:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8jOb-00063Q-92 for qemu-devel@nongnu.org; Tue, 15 Dec 2015 01:47:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8jOb-00063E-34 for qemu-devel@nongnu.org; Tue, 15 Dec 2015 01:47:37 -0500 References: <20151214134939.GA3142@var.bordeaux.inria.fr> <1450101088-14575-1-git-send-email-samuel.thibault@ens-lyon.org> <1450101088-14575-3-git-send-email-samuel.thibault@ens-lyon.org> <566F0179.50209@redhat.com> <20151214220616.GB2967@var.home> From: Thomas Huth Message-ID: <566FB781.7060000@redhat.com> Date: Tue, 15 Dec 2015 07:47:29 +0100 MIME-Version: 1.0 In-Reply-To: <20151214220616.GB2967@var.home> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/9] slirp: Adding address family switch for incoming frames List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault Cc: zhanghailiang , Li Zhijian , Stefan Hajnoczi , Jason Wang , qemu-devel@nongnu.org, Vasiliy Tolstov , Dave Gilbert , Gonglei , Jan Kiszka , Huangpeng , Guillaume Subiron On 14/12/15 23:06, Samuel Thibault wrote: > Thomas Huth, on Mon 14 Dec 2015 18:50:49 +0100, wrote: >>> + default: >>> + /* Do not assert while we don't manage IP6VERSION */ >>> + /* assert(0); */ >> >> Not sure if we ever want to have an assert() here - since I assume this >> could be triggered by the guest? > > No, this is if_encap, so packets that slirp builds for the guest, so it > shouldn't ever happen. The input side is in slirp_input(), which just > ignores frames with unknown protocol. OK, in that case the assert() is of course the right choice. Thanks for the explanation! Thomas