[Spice-devel] [PATCH 2/7] spice-ppc: Fixing endianess for channel startup negotiation

Christophe Fergeau cfergeau at redhat.com
Wed Aug 8 04:05:55 PDT 2012


On Wed, Aug 08, 2012 at 05:26:09AM -0400, Yaniv Kaul wrote:
> >  static int reds_send_link_ack(RedLinkInfo *link)
> >  {
> >      SpiceLinkHeader header;
> > @@ -1224,12 +1242,12 @@ static int reds_send_link_ack(RedLinkInfo
> > *link)
> >      RedChannelCapabilities *channel_caps;
> >      BUF_MEM *bmBuf;
> >      BIO *bio;
> > -    int ret = FALSE;
> > +    int ret = FALSE, *commom_caps = -1, *caps = -1;
> >  
> >      header.magic = SPICE_MAGIC;
> >      header.size = sizeof(ack);
> > -    header.major_version = SPICE_VERSION_MAJOR;
> > -    header.minor_version = SPICE_VERSION_MINOR;
> > +    header.major_version = htole32(SPICE_VERSION_MAJOR);
> > +    header.minor_version = htole32(SPICE_VERSION_MINOR);
> 
> If you are already touching it, move it to 1 byte each (http://spice-space.org/page/ProtocolChanges#Protocol_Version_field_.28minor_.26_major.29_should_be_1_byte_sized_each)

No, we don't want to do that. The changes in this patch don't break the
on-wire protocol, what you suggest would break backward compatibility.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120808/f56c87fb/attachment.pgp>


More information about the Spice-devel mailing list