From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8bGC-0006PH-6b for qemu-devel@nongnu.org; Mon, 14 Dec 2015 17:06:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8bG8-0006IX-WF for qemu-devel@nongnu.org; Mon, 14 Dec 2015 17:06:24 -0500 Received: from sonata.ens-lyon.org ([140.77.166.138]:47930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8bG8-0006Gn-Pf for qemu-devel@nongnu.org; Mon, 14 Dec 2015 17:06:20 -0500 Date: Mon, 14 Dec 2015 23:06:16 +0100 From: Samuel Thibault Message-ID: <20151214220616.GB2967@var.home> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <566F0179.50209@redhat.com> 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: Thomas Huth Cc: zhanghailiang , Li Zhijian , Stefan Hajnoczi , Jason Wang , qemu-devel@nongnu.org, Vasiliy Tolstov , Dave Gilbert , Gonglei , Jan Kiszka , Huangpeng , Yang Hongyang , Guillaume Subiron 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. Samuel