[Spice-devel] [PATCH spice-gtk v5 0/6] Allow ipv6 proxy url
Pavel Grunt
pgrunt at redhat.com
Wed Jun 1 08:04:43 UTC 2016
Hi,
these patches add ipv6 support to SpiceUri, so it can be used in SPICE_PROXY.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335239
v5 per Victor's review:
- renamed tests/test-spice-uri.c to tests/uri.c (binary name is test-spice-uri)
- helper function for tests are introduced in the first patch, so adding ipv6
tests does not change too many lines and the patch is easier to read
v4 contains changes suggested by Christophe, Victor, Frediano:
- Added check for scheme
- Tests check for error messages
- Port 0 is considered invalid
- Fixed memory leaks
v3 per Frediano's review:
- Added test for port out of range (0, 65535)
- reset all values of SpiceUri before parsing
v2 contains changes suggested by Frediano and Victor:
- more tests (missing port, missing ending bracket)
- tests are defined in array, so it is easier to add new test cases
- follow ipv6 address format http://user:password@[ipv6]:port
Thanks,
Pavel Grunt (6):
tests: Add test for SpiceURI
spice-uri: Reset SpiceURI before parsing
spice-uri: Do not allow empty port string
spice-uri: Check if port is in allowed range
spice-uri: Validate uri scheme
spice-uri: Add ipv6 support
src/spice-uri.c | 76 +++++++++++++++++++++--------
tests/Makefile.am | 2 +
tests/uri.c | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 202 insertions(+), 19 deletions(-)
create mode 100644 tests/uri.c
--
2.8.3
More information about the Spice-devel
mailing list