Skip to content

Commit e118846

Browse files
committed
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.
1 parent 31c269b commit e118846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhcptest.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ enum NETBIOSNodeTypeChars = "BPMH";
224224
/// How option values are displayed and interpreted
225225
enum OptionFormat
226226
{
227-
special,
228227
unknown,
228+
special,
229229
str,
230230
ip,
231231
IP = ip, // for backwards compatibility

0 commit comments

Comments
 (0)