From 7665440956f7bf25bd6a17b9c9c076b3e88b94d7 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Thu, 11 Nov 2010 15:29:01 -0500 Subject: [PATCH] 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"). --- docs/schemas/network.rng | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) 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} + + + -- 2.47.2