From e118846e6748e0eb31e7ad3a8e3cc111aeed560e Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Tue, 19 Mar 2024 21:17:21 +0000 Subject: [PATCH] Swap 'special' and 'unknown' in enum, so that 'unknown' is default If 'special' is the default for unknown options then dhcptest refuses to accept them, with 'Fatal error: Can't specify a value for special option NN' when there is no format specifed, or with an assertion at line 616 for basically the same reason, if there is a format specifier. Swapping so that 'unknown' is the default means that unknown options can be successfully manually specified. --- dhcptest.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcptest.d b/dhcptest.d index a20ce63..1810e13 100644 --- a/dhcptest.d +++ b/dhcptest.d @@ -224,8 +224,8 @@ enum NETBIOSNodeTypeChars = "BPMH"; /// How option values are displayed and interpreted enum OptionFormat { - special, unknown, + special, str, ip, IP = ip, // for backwards compatibility