From 4a890dba1c4b06f177de24bbb54f55b2428ad2f1 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Thu, 21 Dec 2023 03:18:45 -0600 Subject: dhcp: T5846: Ensure DUID regex range is bound The DUID regex was missing a lower bound, which could cause it not to match when it should. We have to specify the lower bound explicitly as 0 to keep the regex behavior similar to that in Python (in Python, omitting the lower bound is equivalent to specifying 0). (cherry picked from commit 551f06218755076cde588c848c01ce5ca1bf5e6b) --- interface-definitions/include/interface/duid.xml.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface-definitions/include/interface') diff --git a/interface-definitions/include/interface/duid.xml.i b/interface-definitions/include/interface/duid.xml.i index 4f8988dfa..8d808696e 100644 --- a/interface-definitions/include/interface/duid.xml.i +++ b/interface-definitions/include/interface/duid.xml.i @@ -7,7 +7,7 @@ DHCP unique identifier - ([0-9A-Fa-f]{2}:){,127}([0-9A-Fa-f]{2}) + ([0-9A-Fa-f]{2}:){0,127}([0-9A-Fa-f]{2}) Invalid DUID, must be in the format h[[:h]...] -- cgit v1.2.3