From: Laine Stump Date: Thu, 11 Nov 2010 20:29:01 +0000 (-0500) Subject: Do a better job of validating IP and MAC addresses in network.rng X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7665440956f7bf25bd6a17b9c9c076b3e88b94d7;p=libvirt.git Do a better job of validating IP and MAC addresses in network.rng IP addresses and MAC addresses had been defined in the RNG simply as meaning that, according to the RNG, any string could go in there. Of course the C parsing code does a much better job of validating, but we may as well have this describing the contents accurately (even though it's currently only used during "make check"). --- diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng index ca100b75ef..1daa30e719 100644 --- a/docs/schemas/network.rng +++ b/docs/schemas/network.rng @@ -83,14 +83,12 @@ - - + - + @@ -102,13 +100,13 @@ - - + + - + @@ -127,4 +125,19 @@ + + + + + (((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([1-9][0-9])|([0-9]))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([1-9][0-9])|([0-9])) + + + + + + + ([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2} + + +