From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgB31-0007T2-CG for qemu-devel@nongnu.org; Tue, 21 Feb 2017 09:04:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgB2v-0006u9-J0 for qemu-devel@nongnu.org; Tue, 21 Feb 2017 09:04:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51518) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgB2v-0006tt-DX for qemu-devel@nongnu.org; Tue, 21 Feb 2017 09:04:01 -0500 From: Juan Quintela In-Reply-To: <20170220185020.774-5-dgilbert@redhat.com> (David Alan Gilbert's message of "Mon, 20 Feb 2017 18:50:19 +0000") References: <20170220185020.774-1-dgilbert@redhat.com> <20170220185020.774-5-dgilbert@redhat.com> Reply-To: quintela@redhat.com Date: Tue, 21 Feb 2017 15:03:56 +0100 Message-ID: <8760k3od2r.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v4 4/5] slirp: VMStatify socket level List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, samuel.thibault@ens-lyon.org, jan.kiszka@siemens.com "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Working up the stack, this replaces the slirp_socket_load/save > with VMState definitions. > > A place holder for IPv6 support is added as a comment; it needs > testing once the rest of the IPv6 code is there. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela > +/* Win has a signed family number */ > +#define VMSTATE_SS_FAMILY(f, s) VMSTATE_INT16(f, s) Great! Just hope that there is no 32000 families soon :-) > +#if 0 > + /* Untested: Needs checking by someone with IPv6 test */ > + VMSTATE_BUFFER_TEST(sin6.sin6_addr, union slirp_sockaddr, > + slirp_family_inet6), > + VMSTATE_UINT16_TEST(sin6.sin6_port, union slirp_sockaddr, > + slirp_family_inet6), > + VMSTATE_UINT32_TEST(sin6.sin6_flowinfo, union slirp_sockaddr, > + slirp_family_inet6), > + VMSTATE_UINT32_TEST(sin6.sin6_scope_id, union slirp_sockaddr, > + slirp_family_inet6), > +#endif I think this is wrong, we have different fieldbs depending in if it is ipv6 or not? Later, Juan.