Daniel P. Berrange 9117783bc0 rng: fix port number range validation
The PortNumber data type is declared to derive from 'short'.
Unfortunately this is an signed type, so validates the range
[-32,768, 32,767] which excludes valid port numbers between
32767 and 65535.

We can't use 'unsignedShort', since we need -1 to be a valid
port number too.

This change is to use 'int' and set an explicit max boundary
instead of relying on the data types' built-in max.

One of the existing tests is changed to use a high port number
to validate the schema.

https://bugzilla.redhat.com/show_bug.cgi?id=1214664

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 615bdfda07b7a59125c16ac780762a07d97ef4fe)
2015-04-28 11:27:24 -04:00
..
2014-12-02 07:30:10 +01:00
2014-12-02 07:30:10 +01:00
2013-12-02 10:21:26 +08:00
2014-03-01 23:44:58 +04:00
2014-10-06 13:15:31 +02:00
2014-03-03 17:41:26 +04:00
2013-12-02 10:21:26 +08:00
2014-12-10 11:21:31 +01:00
2014-12-02 07:30:10 +01:00
2014-03-01 23:44:58 +04:00
2014-12-02 07:30:10 +01:00
2009-07-16 15:06:42 +02:00
2015-03-02 11:40:05 +08:00
2009-07-29 09:04:21 +01:00
2014-12-02 07:30:10 +01:00
2013-12-02 10:21:26 +08:00
2013-09-12 17:18:32 +08:00
2013-11-26 18:37:09 +08:00
2014-12-02 07:30:10 +01:00