From f9b1323a1464af2da539bf279bec77fdea771b0c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 19 Nov 2023 21:43:15 +0100 Subject: dhcp-client: T5760: add constraints for dhclient string options The string data type specifies either an NVT ASCII string enclosed in double quotes, or a series of octets specified in hexadecimal, separated by colons. For example: set interfaces ethernet eth0 dhcp-options client-id CLIENT-FOO or set interfaces ethernet eth0 dhcp-options client-id 43:4c:49:45:54:2d:46:4f:4f As of now there was no input validation performed. (cherry picked from commit bed1cd01904ef89b5d31bd47de0f230214900f16) --- interface-definitions/include/interface/dhcp-options.xml.i | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'interface-definitions/include/interface/dhcp-options.xml.i') diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i index 8027769ff..fff83fd5c 100644 --- a/interface-definitions/include/interface/dhcp-options.xml.i +++ b/interface-definitions/include/interface/dhcp-options.xml.i @@ -7,6 +7,13 @@ Identifier used by client to identify itself to the DHCP server + + txt + DHCP option string + + + #include + @@ -27,6 +34,13 @@ Identify the vendor client type to the DHCP server + + txt + DHCP option string + + + #include + #include -- cgit v1.2.3