ivshmem-server: use a uint16 for client ID
commit022cffe31360750b405d368e343f3ca5febc0d0a
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Jun 2015 15:09:59 +0000 (23 17:09 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:03:16 +0000 (24 18:03 +0200)
tree7daea3d2b9296c673c57334a6b6a2bc1ac3a5d5a
parent95204aa951ceb28eb6d4ce43bce09a58cbad83d8
ivshmem-server: use a uint16 for client ID

In practice, the number of VM is limited to MAXUINT16 in ivshmem, so use
the same limit on the server (removes a theorical infinite loop)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
contrib/ivshmem-server/ivshmem-server.c
contrib/ivshmem-server/ivshmem-server.h